943,923 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2668
  • Java RSS
Sep 23rd, 2005
0

problem in java

Expand Post »
hi all
i have installed jdk1.5.0 in gentoo linux and having the following problem can any one help me out what should be done
i had just installed gentoo. i am not able to set a java heap size of
more than 2600m on these machines. I m getting following error
--------------------------------------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
--------------------------------------------------

My suspicion is this is a kernel tunable issue, because i have never faced this
issue in fedora stock kernels.

so what might be the problem and i have tries all the latest java software like jdk1.5.0

but same thing is running fine in in fedora with rany amount of ram like 1gb, 2 gb and 1 gb swap but same thing is not even working in Gentoo with 4gb ram and 1 gb swap

so plz help me out
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
jindalarpan is offline Offline
91 posts
since Aug 2005
Sep 23rd, 2005
0

Re: problem in java

Sounds indeed like the operating system is rejecting request to allocate the 2.5GB of RAM to the JVM initially.
You should probably ask in a specialised Linux forum instead.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Sep 24th, 2005
0

Re: problem in java

Quote originally posted by Sun Microsystems - J2SE 1.5.0 ...
On Solaris 7 and Solaris 8 SPARC platforms, the upper limit for this value is approximately 4000m minus overhead amounts. On Solaris 2.6 and x86 platforms, the upper limit is approximately 2000m minus overhead amounts. On Linux platforms, the upper limit is approximately 2000m minus overhead amounts.
source: http://java.sun.com/j2se/1.5.0/docs/...aris/java.html

Please also see:
http://java.sun.com/j2se/1.5.0/docs/...ver-class.html
http://java.sun.com/j2se/1.5.0/docs/...rgonomics.html

-----------------------------

Quote originally posted by jindalarpan ...
but same thing is running fine in in fedora with rany amount of ram like 1gb, 2 gb and 1 gb swap but same thing is not even working in Gentoo with 4gb ram and 1 gb swap
How could you have ever set Xmx=2600m on the Fedora box with only 1g/2g physical RAM? Even with 1g of swap, as the last thing you want the JVM to do is start swapping to disk. The GC thrashing the swap would soon bring your application to it's knees.

My guess is that you were running the same code, but with a heap setting < 2000m on the Fedora box? If not can you please elaborate.

Kate
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
Kate Albany is offline Offline
71 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Output
Next Thread in Java Forum Timeline: need help with error message





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC