Forum Problems Installing LAMS: Re: Re: Re: Problem installing on a shared server


 
Search: 

4: Re: Re: Re: Problem installing on a shared server
In response to 3 07/10/07 09:44 PM
[ Reply | Forward ]
That's interesting... it could be that instead of 'testJava' not getting enough memory, it's asking for too much (and getting denied by the OS running your shared server). If your server has >= 2 CPUs and > 2GB of ram, then running 'java -cp bin testJava' will automatically ask for a minimum amount of memory equal to a fraction of your server's total ram.

http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html

Can you try running it like this:

shell> java -client -cp bin testJava

The client option by default asks for only 2MB initially. If that doesn't work, try

shell> java -Xms1m -cp bin testJava

I'm making the assumption here that your host server is a beefy machine with >= 2 CPUs and > 2GB ram. But if one of these commands works, then it may be that your host is running out of memory for your java apps (= not good for LAMS).

Posted by Jun-Dir Liew

Reply to first post on this page
Back to Problems Installing LAMS