Archive for the ‘Uncategorized’ Category

I guess people usually complain when they post about their various dealings with companies, and well, this post will be no different.

My first problem was that my server died after a few days, so this was fixed within a day or two, and they gave me 1-2 months free. Good for some, okay for me.

Now I’m trying to upgrade to 64 bit centos.  They don’t support it! (some comment about don’t support it on older servers), and they won’t let me upgrade my server till the 1 year contract expires in September (6 months away!) crazy!!

On the bright side, they did provide information for me to do it myself. (on the downside, it didn’t work, but that’s a pending issue, I’m sure I’ll get it going).

Also on the downside: 24/7 support.  Well, actually they don’t have 24/7 support for their dedicated servers.  At least according to the lady I just called (it’s 6:44am Friday there), and she said they don’t open till 9:30am.  Crazy stuff (and the reason for this post.  Because my server is down, I can’t reboot it, I can’t get kvm access to it, and .. well .. it’s down .. not good). Perhaps I’m spoiled by “theplanet” in the US (but their UK servers are too expensive for me $300/mo).

Can’t upgrade the server .. that’s just crazy…


I’m using 64 bit CentOS, and frequently forget how to get the java plugin working, usually something like make some symbolic link.  Anyway here is what I do:

download and install java from sun.


sudo sh ./jdk-6u18-linux-x64-rpm.bin
cd ~/.mozilla/plugins
ln -s /usr/java/jdk1.6.0_18/jre/lib/amd64/ .

now restart your browser. has a little java applet on it.

If you have problems finding, then use “locate”, and if you just installed the java software from sun, then you might need to do “sudo updatedb” first, then locate…

I run my own template engine using JSP’s. After I added some dynamic templates (I generate the JSP’s with a JSP 🙂 ) the number of JSP’s exploded and tomcat started to run slowly. So easy fix was just to allocate some more memory. I edited

exec "$PRGDIR"/"$EXECUTABLE" start "$@" -Xmx4096m

but the proper fix will be to unload the servlet after they are used (since they are only used once).

Also note, I’m running 64bit, so I can say 4096m 🙂 It’s nice when 64bit actually helps rather than causes you pain.

Interestingly enough, the problem can be traced to tomcat, and someone recently submitted a patch for exactly the behaviour I’m seeing!

And (Since I didn’t apply the patch), but the current last line in my is:

exec "$PRGDIR"/"$EXECUTABLE" start "$@" -Xms4000m -Xmx5096m -XX:-UseGCOverheadLimit

okay, so that all didn’t work that great, and so I built apache with the above patch. Works great.