Problems running a Java-APP as User, Could not reserve enough space for object heap

Noki

Registered
Jul 23, 2006
4
0
151
Hi!

I have problems running a Java-APP as user from the Shell. It seems that cPanel limits the memory a user could allocate.

If I login as user and type

/usr/bin/java -version

I get:

Error occurred during initialization of VM
Could not reserve enough space for object heap

If I run it as root everything is fine.

My setup:

cPanel 11.24.4-R35075 - WHM 11.24.2 - X 3.9
CENTOS 5.3 x86_64 standard

I installed openjdk using the RPM-Installer.

How do I increase the memory-limit to a value of ~3GB or how do I turn it of completely?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hi!

I have problems running a Java-APP as user from the Shell. It seems that cPanel limits the memory a user could allocate.

If I login as user and type

/usr/bin/java -version

I get:

Error occurred during initialization of VM
Could not reserve enough space for object heap

If I run it as root everything is fine.

My setup:

cPanel 11.24.4-R35075 - WHM 11.24.2 - X 3.9
CENTOS 5.3 x86_64 standard

I installed openjdk using the RPM-Installer.

How do I increase the memory-limit to a value of ~3GB or how do I turn it of completely?
I know this would be the case if you have Shell Fork Bomb Protection enabled. If you disable it, that will let all users use more memory, but it makes your server vulnerable to fork bombs.
 

Noki

Registered
Jul 23, 2006
4
0
151
all the lines start with an # - so they are all comments ... are there any default settings I have to override?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator