Java memory heap ?

Eric

New Member
Messages
4
Reaction score
0
Points
1
When i go to run my java based game server app i get this error

Code:
java.io.IOException: error=12, Cannot allocate memory

Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.

When "googling" around for a fix it brings me to solutions about heap space and such?

Im certain its not physically running out of memory as i have ran this same game server on smaller boxes with 256mb of ram

If anyone has any knowledge with this type of issue please let me know!!

( i am running Centos on the x3 plan)

-Eric
 
Last edited:

nastus

New Member
Messages
90
Reaction score
1
Points
0
You have to lower the amount of memory your using to run it, for eg.. a starter command might say -xmx1000m you would have to lower 1000m to lets say 750m or 500m if you using x3 you do not have much memory and should probably just pay the extra 5-8 bucks for an upgrade :p
 

Eric

New Member
Messages
4
Reaction score
0
Points
1
Many thanks for the replies and it seems i dont have "permission" when i go to try and allocate java more memory on my server.. Now i am wondering if i do upgrade ( i plan on upgrading to the x9 later this week) will i get the same error as it seems its a server side configuration so far and i dont have the correct permissions to set it myself.

when i run @toys fix i get

[root@server144121 ~]# echo 0 > /proc/sys/vm/overcommit_memory
-bash: echo: write error: Operation not permitted


@nastus where would i run that command in my buildfile i have it set correct as far as i know

http://pastebin.com/KquNdjza

Not sure if you know much about java i hope you do so you can help me :)

But in that file it has the lines

Code:
  jvmarg value="-Xms128m" 
                        jvmarg value="-Xmx512m"

I have tried lowering those rates to 64mb 128mb etc and still got this error

http://pastebin.com/pYzmY55L

So of course the main question at hand would be if i did upgrade my hosting would it ultimately fix my issue or would i still run into this problem?

Many thanks guys
 
Last edited:

Eric

New Member
Messages
4
Reaction score
0
Points
1
Just a quick update for those who were wondering i have tried diffrent things and was able to get one java app running. working on a few other fixes right now! will post final solution ( if i ever find one) when done!
 
Top