problem with running java on Linux 2.6.9-023stab043.1-enterprise

Rick Stevens rstevens at internap.com
Tue May 15 17:46:33 UTC 2007


On Tue, 2007-05-15 at 18:41 +0530, Alok Padey wrote:
> hi gurus
> 
> I am facing problem while running java on linux(Linux
> 2.6.9-023stab043.1-enterprise)
> after installation i executed the command :
> java -version ,got error as :
> 
> "Error occurred during initialization of VM
> Could not reserve enough space for code cache"
> 
> I have also tried 
> jdk1.5.0_06/bin/java -Xmx512M
> 
> but no luck
> 
> Have any one experienced this problem before.
> Any idea is welcome.
> plz show me light were to search
> 
> The deatils are as:
> java : jdk1.5
> linux: 2.6.9-023stab043.1-enterprise
> RAM: 700 MB(approx) 40% in use 60% free. 
> 
> [root at as private]# ulimit -a
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> file size (blocks, -f) unlimited
> pending signals (-i) 1024
> max locked memory (kbytes, -l) 32
> max memory size (kbytes, -m) unlimited
> open files (-n) 1024
> pipe size (512 bytes, -p) 8
> POSIX message queues (bytes, -q) 819200
> stack size (kbytes, -s) 10240
> cpu time (seconds, -t) unlimited
> max user processes (-u) 71679
> virtual memory (kbytes, -v) unlimited
> file locks (-x) unlimited

Hmmm.  That's odd.  Does "free" show any free memory?

You did set up a swap partition, right?  Is it being used?  "swapon -s"
will show you.  If you're running a GUI, 700MB may be a bit tight and
if you don't have swap, you could be running out of RAM.  Java does
suck up a lot of RAM at times.

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer             rstevens at internap.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-          su -; find / -name someone -exec touch \{\} \;            -
-                          - The UNIX way of touching someone        -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list