![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| allocate more space to /home | mcraul | UNIX for Dummies Questions & Answers | 2 | 05-03-2008 03:56 AM |
| how allocate virtual memory | munnu | High Level Programming | 2 | 04-20-2007 12:07 PM |
| Unix Help - allocate more memory to /tmp | cmackin | UNIX for Dummies Questions & Answers | 1 | 06-01-2006 03:25 AM |
| unable to allocate enough cells for gray scale | raz | SUN Solaris | 1 | 10-04-2004 10:47 AM |
| hoe to allocate a 2 dimensions array? | azran | High Level Programming | 2 | 09-30-2002 07:22 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
unable to allocate enough memory
On SunOS 5.8 I 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 top reports the following: Code:
load averages: 0.81, 0.91, 1.26 17:03:16 284 processes: 283 sleeping, 1 on cpu CPU states: 90.4% idle, 6.0% user, 2.4% kernel, 1.1% iowait, 0.0% swap Memory: 32G real, 11G free, 28G swap in use, 2491M swap free uptime reports: Code:
5:13pm up 237 day(s), 9 min(s), 19 users, load average: 0.93, 1.16, 1.27 |
| Forum Sponsor | ||
|
|
|
|||
|
We have 2Gb heap allocated. The issue is not a java issue because this is an OS message produced on the native stdout, not SystemOut from java. The Solaris system is unable to allocate enough memory for the JVM, even though it reports to have 12Gb available. If we stop other large memory consuming processes it is possible to start this JVM process. How is it possible that Solaris can't allocate 2Gb to 3Gb memory when there's 6 times that much available?
|
|
||||
|
Quote:
That's a little bit weird... I'm talking about the fact that when you stop other java processes it works... - Is your JVM 32 bits? - what about "ulimits"? |
|
|||
|
ulimit -a reports:
Code:
core file size (blocks) unlimited data seg size (kbytes) unlimited file size (blocks) unlimited open files 1024 pipe size (512 bytes) 10 stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes 29995 virtual memory (kbytes) unlimited Code:
java version "1.4.2_15" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02) Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode) uname -a: Code:
SunOS hostname 5.8 Generic_117350-43 sun4us sparc FJSV,GPUZC-M |
| Tags |
| load average, performance, solaris |
| Thread Tools | |
| Display Modes | |
|
|