Wednesday, October 22nd 2008


Running Java servlets and Java application servers on Media Temple DV Servers
posted @ 5:29 am in [ Fixing Things -Media Temple -Technology -Web Design ]

I’ve always had problems trying to run Java based application servers on Media Temple Dedicated Virtual Servers (DV Servers), as although they have lots and lots of disk space and bandwidth, they seem to have very small memory spaces that you can run containers in.

Java by default powers up with about 1024Mb of memory requirements, so if you are installing Apache Tomcat (java servlet engine) or Red 5 (Open Source Flash Video server – very good, try it out) you have to seriously reign in the memory these guys try and use when powering up.

For reference the best way to achieve this is using the -Xms and -Xmx parameters, so in my case I added the following to the startup.sh script for Tomcat

JAVA_OPTS=’ -Xms128M -Xmx128M’
export JAVA_OPTS 

Ideally I’d like a bit more memory to play with, but at least it works like this and the old application I’m supporting can run 🙂




Friday, October 17th 2008


Debug mode for Safari on Windows
posted @ 3:45 am in [ Uncategorized ]

Firebug is a brilliant debug tool for Firefox, and Safari currently lacks such a great tool – however it does have it’s own inbuilt debugger.

After researching around, it turns out that the way to enable this has changed quite a lot, however the latest way of enabling it is as follows:

 1. Open the Safari preferences file

This is located in

C:\Documents and Settings\<your username>\Application Data\Apple Computer\Safari\Preferences\com.apple.Safari.plist

You may need to enable Tools -> Folder Options -> View -> Display the contents of system folders in your Explorer if you cannot see this folder by default.

 2. Add the following keys to your file

Edit the file and add the following two keys just before the </dict> near the end of the file

 <key>IncludeDebugMenu</key>
 <true/>
 <key>IncluldeInternalDebugMenu</key>
 <true/>

3. Restart Safari

And you have a new Drop Down menu called Develop which lets you do what you need