The US is often proud of its diversity, but here in Japan, homogeneity is really a great thing. People look good and seem to subconsciously understand principles of biological attraction, especially cuteness. Femininity is everywhere, and feminism in the least degree is not to be found. Style and fitness come naturally because stores sell fashionable clothing and supermarkets sell fresh foods.

There is not a lot of seediness here. Doors are left unlocked. Even our wireless router is not password-protected. The internet is very fast at 30Mbps down/10Mbps up, and pings are low in the region, but I can’t play US-based first person shooters anymore. My appliances work fine.

There is much harmony and nobility. I’ve stopped judging and have discovered a kind feeling towards others. Even though I’ve done nothing yet, I’m becoming closer to who I really am.

My destination is Tokyo. I have a connecting flight in Detroit. I’m sitting in the waiting area of Gate 40 in Newark International Airport, across from Sleeping Beauty, and I’m sure that I’m caught up in the atmosphere of hope that is all around me! I had a lot of things I wanted to write about leaving and about anticipation, but it all seems so insignificant now.

Do you believe that human beings have souls? Well, I do, and I call souls “ghosts” after the anime Ghost in the Shell. My ghost was bound to the world through its self-reflection off of my parents and friends. Here, I find that that is no longer the case. If I had to say where my ghost is now, I’d say it’s somewhere in between the lines of my face, the paleness of my skin, and the movement of my pupils as they look at you. It’s time to board.

Eating under the dinner table is something I hope to experience

Yesterday, I watched Memoirs of a Geisha, and decided that life is art. Graduation is in a week, and the time for highbrow philosophizing is over. I’m not going to rant anymore about freedom or human zombies or personality change… well, maybe just a little bit. Heading into the real world with unrealistic expectations, my only thoughts now are “go to Japan” and “my bank accounts can only hemorrhage for two more years.”

I was never one to believe in work-life balance. Life is art; risking it all, I’ll be a full-time artist. This is vague, but it is enough to act on. This is a proper course of action for a self-serving child born from a generation of self-sacrificing parents. This is the right path for yuppies with broken dreams.

So we’ve already installed Litespeed, PHP5, and eAccelerator. The final step is to optimize our Litespeed and PS settings.

First, make sure that ALL of your domains on the Dreamhost PS are proxied through Litespeed. This allows Dreamhost’s Apache to only use 6MB of RAM per thread, instead of the usual 8MB. This is a huge memory savings. Each domain must be forwarded to a different internal port within Dreamhost’s proxy interface. A new listener with the corresponding port and a new virtual host must be defined within Litespeed’s configuration for each domain.

Next, in Dreamhost’s “Manage Domains,” “Extra Web Security” should be turned off since Apache is no longer used. When it is on, mod_security is loaded, which wastes RAM. Security and request filters can be tuned in the Litespeed web console. This can possibly reduce server load from spam bots. In Server/Request Filter, turn on “Enable Request Filtering” and “Scan Request Body.” Disable the “XSS attack” rule set because it breaks certain applications such as WordPress.

In Litespeed’s Server/Tuning/GZIP Compression, turn on compression, but leave dynamic compression off. There is insufficient CPU on a downscaled Dreamhost PS to perform dynamic compression for each request, and if it is on, the web server will suffer. If you have a larger Dreamhost PS, you can turn it on, but should leave the compression level at 1 for best performance.

In Litespeed’s Server/Tuning, reduce the Connection Timeout, Keep-Alive Timeout, Max Request URL Length, and Max Request Header Size, using the values in the tooltips as a guide. Again, this may reduce load from spam bots and DOS attacks.

In Litespeed’s Server/General/General settings, turn on “Use Client IP in Header” becaue we are behind a proxy server. This will allow Litespeed to read the HTTP 1.1 X-Forwarded-For header, which contains the actual IP address of the web connection.

In Litespeed’s Server/External App/phpLsapi, set Max Connections to 3, Persistent Connection to Yes, Instances to 1, Max Idle Time to 60, Connection Keepalive Timeout to 60, and use these lines in Environment:

If the server has more than 512MB of RAM, set Max Connections to 5 and PHP_LSAPI_CHILDREN=5. If it has more than 1024MB of RAM, use 10, and so on. This will help the concurrency of busy servers.

In Dreamhost’s Stats/Site Statistics, uncheck the “Run Analog Reports” box for all of your domains. The calculation of the stats uses up a lot of server resources each day, and although you will no longer see useful information about individual requests and bots, a non-server-log-parsing tracker such as Mint or Statcounter is preferable.

Tune Dreamhost PS’s CPU/Memory settings, maintaining at least 200MB free swap memory AND keeping the 15-minute load average below 1. After a short burst of CPU Usage or Memory past your limits, the speed of the CPU or memory will be throttled greatly. If PHP decides to use those slow resources, it can cause a chain reaction that starts too many Apache threads, possibly bringing the server down.

Mem: 307200k total, 253608k used, 53592k free
Swap: 307200k total, 0k used, 307200k free

That’s all! Your Dreamhost PS should now be running in top shape.

Humans are called social animals. An eye for an eye? Then he’s just a caveman.


Socially, he died.
However, as an animal, he lives.


« Previous Entries