[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



Hi Rick
Thanks for ur time . I have paste the o/p of top command below , have a look . hope it will help u in providing any solution.:

thx

top - 20:37:18 up 11 days,  7:51,  1 user,  load average: 0.00, 0.00, 0.00
Tasks:  56 total,   1 running,  55 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    689496k total,   302016k used,   387480k free,        0k buffers
Swap:        0k total,        0k used,        0k free,        0k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
23581 root      16   0  2604 1004  792 R    0  0.1   0:00.03 top
    1 root      16   0  1620  604  520 S    0  0.1   0:02.18 init
27955 root      16   0  1524  540  456 S    0  0.1   0:08.28 syslogd
27965 root      16   0  4008 1128  832 S    0  0.2   0:07.99 sshd
27975 root      16   0  2072  812  684 S    0  0.1   0:00.55 xinetd
27994 root      16   0  3484  816  612 S    0  0.1   0:00.30 couriertcpd
27996 root      16   0  3384  948  756 S    0  0.1   0:00.18 courierlogger
28006 root      16   0  3484  816  612 S    0  0.1   0:00.40 couriertcpd
28008 root      16   0  3384  948  756 S    0  0.1   0:00.28 courierlogger
28016 root      16   0  3484  816  612 S    0  0.1   0:02.50 couriertcpd
28018 root      15   0  3384  948  756 S    0  0.1   0:01.69 courierlogger
28027 root      16   0  3484  816  612 S    0  0.1   0:04.57 couriertcpd
28029 root      16   0  3384  948  756 S    0  0.1   0:02.75 courierlogger
28168 root      18   0  2144 1136  972 S    0  0.2   0:00.00 mysqld_safe
28201 mysql     16   0 98.4m  14m 4864 S    0  2.2   1:21.85 mysqld
28251 root      16   0 35744 4928 3008 S    0  0.7   0:00.03 httpsd
28255 psaadm    16   0 44292  31m  21m S    0  4.6   0:16.91 httpsd
28270 root      16   0  2472  920  536 S    0  0.1   0:00.11 crond
28279 root      18   0  4044  804  576 S    0  0.1   0:00.00 saslauthd
28280 root      18   0  4044  464  236 S    0  0.1   0:00.00 saslauthd
28370 psaadm    16   0 43468  31m  22m S    0  4.7   0:19.82 httpsd
28399 psaadm    16   0 43508  30m  20m S    0  4.5   0:23.75 httpsd
28433 root      16   0 35436  18m 8116 S    0  2.7   0:03.02 httpd
28482 named     15   0 68324 2764 1812 S    0  0.4   0:00.11 named
30280 root      16   0 74580  45m 1572 S    0  6.8   0:00.04 supervisor
32201 root      16   0 42100  15m 1572 S    0  2.3   0:00.03 supervisor
32353 root      17   0 41984  15m 1704 S    0  2.4   0:00.59 supervisor
32696 root      16   0 42944  15m 1704 S    0  2.4   0:00.38 supervisor
 1693 root      15   0 41828  15m 1572 S    0  2.3   0:00.02 supervisor
 1731 root      17   0 42068  15m 1704 S    0  2.4   0:00.26 supervisor
 2007 root      16   0 42968  16m 1752 S    0  2.4   0:00.55 supervisor
26279 root      16   0 28376  24m 2304 S    0  3.7   0:02.22 spamd
24317 qmails    15   0  1500  464  380 S    0  0.1   0:03.80 qmail-send
24319 qmaill    15   0  1456  448  392 S    0  0.1   0:00.40 splogger
24320 root      16   0  1484  352  268 S    0  0.1   0:00.43 qmail-lspawn
24321 qmailr    16   0  1480  392  284 S    0  0.1   0:00.03 qmail-rspawn
24322 qmailq    15   0  1448  324  268 S    0  0.0   0:00.06 qmail-clean
28132 apache    16   0 25200 9652  596 S    0  1.4   0:00.00 httpd
28134 apache    15   0 45512  24m 5708 S    0  3.7   0:38.13 httpd
29784 apache    15   0 45432  24m 5688 S    0  3.6   0:36.29 httpd
16362 apache    16   0 45644  24m 5696 S    0  3.7   0:35.67 httpd
17438 apache    16   0 45680  24m 5680 S    0  3.7   0:41.11 httpd
 7792 apache    15   0 45216  24m 5648 S    0  3.6   0:36.35 httpd
30101 root      15   0  3436 1592 1292 S    0  0.2   0:00.10 couriertls
30102 root      16   0  3436 1596 1292 S    0  0.2   0:00.13 couriertls

# free
             total       used       free     shared    buffers     cached
Mem:     689496   302080   387416      0          0          0
-/+ buffers/cache:     302080     387416
Swap:            0          0          0


On 5/15/07, Rick Stevens <rstevens internap com> wrote:
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 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 internap com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-          su -; find / -name someone -exec touch \{\} \;            -
-                          - The UNIX way of touching someone        -
----------------------------------------------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request redhat com
Subject: unsubscribe


--
THANKS
ALOK PANDEY
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]