Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 107245

Summary: Unable to set large Java Heap sizes
Product: Gentoo Linux Reporter: Arpan Jindal <jindalarpan>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED NEEDINFO    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Arpan Jindal 2005-09-26 00:39:29 UTC
hi all

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

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-11-25 16:33:33 UTC
Make sure you have large memory support in your kernel.

# CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set
CONFIG_HIGHMEM=y

That is mine, you should compare ( and probably change ) yours.
Comment 2 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-12-10 22:20:36 UTC
What is the status of this bug?
Comment 3 Arpan Jindal 2005-12-11 21:31:44 UTC
still to be solved. 
i have tried all but didnt worked
Comment 4 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-14 11:17:31 UTC
(In reply to comment #0)
> hi all
> 
> 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

Please can you attach emerge --info, output of free -m and your .config ?
Comment 5 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-07-09 04:48:22 UTC
Nothing since march.