LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-20-2011, 04:46 PM   #1
moata_u
Member
 
Registered: Jan 2011
Posts: 32

Rep: Reputation: 0
unable to allocate enough memory


On SunOS 10 get an error when starting a large Java process with over 2Gb memory.

Code:
Error occurred during initialization of VM 
Could not reserve enough space for object heap
i have 32G memory !! , swap = 31G

Please any advice !!!
 
Old 06-20-2011, 04:54 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Java has a 2 gigabyte memory limit on its virtual machine, I'm afraid. Is the code your own? There is likely a better way to do things than reserving 2 gigs of memory...
 
Old 06-20-2011, 07:33 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
That looks like a 32 bit limit. On Solaris 10 you should be able to run 64bit (assuming your HW supports it).
My work systems are 64bit and run 32 + 64 bit code.
 
Old 06-21-2011, 03:22 AM   #4
moata_u
Member
 
Registered: Jan 2011
Posts: 32

Original Poster
Rep: Reputation: 0
info

Quote:
Originally Posted by chrism01 View Post
That looks like a 32 bit limit. On Solaris 10 you should be able to run 64bit (assuming your HW supports it).
My work systems are 64bit and run 32 + 64 bit code.

i have oracle server 86x , OS is solaris 10 installed on it with 32G ...
 
Old 06-21-2011, 08:25 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Check with your Oracle manual or Oracle themselves to see if you have 32 bit or 64 bit Oracle.
Also, check Solaris
Code:
isainfo -kv
Incidentally, that works on SPARC chip; not sure about x86 but try it anyway.
Actually, see other options here http://www.unix.com/solaris/45780-ve...olaris-os.html

Also, google your processor chip & see if you've got a 64 bit chip.
 
  


Reply

Tags
jvm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot allocate memory sha_neb Linux - Software 1 05-03-2011 06:22 PM
Unable to allocate more than4MB DMA memory rajeshverma38 Linux - Kernel 0 02-01-2011 05:41 AM
Cannot allocate memory simha Linux - Newbie 4 01-23-2008 10:19 AM
allocate more memory? sockknitter Debian 3 11-06-2004 06:23 PM
unable to allocate memory vedant Linux - Hardware 0 07-15-2003 08:22 AM


All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration