geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qingtian Wang <qingtian.w...@gmail.com>
Subject Re: how to keep the server process alive on Fedora Linux
Date Wed, 25 Jan 2006 03:55:24 GMT
Hi,

Dumb question again: Which script I should modify to make the JVM
memory arg change?

Shouldn't



Thanks,
Qingtian



On 1/24/06, lichtner <lichtner@bway.net> wrote:
>
> I think another thing I would try right away is to start up the jvm with a
> large initial heap, and make the max heap equal to that. The JVM should
> get all the memory at once, so if you don't have enough virtual memory you
> may be able to detect that right away.
>
> I think another possible source of out-of-memory errors is a never-ending
> method call recursion. But that also you can tell by printing out the
> stack trace.
>
> On Tue, 24 Jan 2006, Qingtian Wang wrote:
>
> > Hi Kevan,
> >
> > Thanks so much! Like I said, I am pretty ignorant about how the admin
> > stuff works. I didn't even know I can see the swap size by doing
> > "free"; I just remembered I specified 1G at the installation time of
> > Fedora and never bothered to really check out if that's really done.
> >
> > Now I've googled and fixed the swap issue (hopefully :). Now I've got
> >
> > [root@localhost /]# free
> >              total       used       free     shared    buffers     cached
> > Mem:        515340     495872      19468          0       5252     211684
> > -/+ buffers/cache:     278936     236404
> > Swap:      1023992          0    1023992
> >
> > I'll let you know how things go after this is done.
> >
> > Thanks again!
> > Qingtian
> >
> >
> >
> > On 1/24/06, Kevan Miller <kevan.miller@gmail.com> wrote:
> > > Qingtian,
> > > comments below...
> > >
> > > On Jan 23, 2006, at 8:21 PM, Qingtian Wang wrote:
> > >
> > > > Hi Kevan,
> > > >
> > > > Appreciate the help! Here's the info:
> > > >
> > > >
> > > > On 1/23/06, Kevan Miller <kevan.miller@gmail.com> wrote:
> > > >>
> > > >> Qingtian,
> > > >> That is one very old pentium... 8-(
> > > >
> > > > I know....  :)
> > > >
> > > >
> > > >>
> > > >> I'm not much a Linux sys admin, but let's gather some information...
> > > >>
> > > >> What is your Linux distribution and version? What version of the
> > > >> linux kernel are you running?
> > > >
> > > > [webmaster@localhost ~]$ uname -a
> > > > Linux localhost 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686
> > > > i686 i386 GNU/Linux
> > > >
> > > >
> > > >> Also, please confirm that you are running Geronimo Version 1.
> > > >
> > > > Yes, 1.0 final release.
> > > >
> > > >
> > > >>
> > > >> While Geronimo is running, run the following commands:
> > > >>
> > > >>     free -m
> > > >
> > > > [webmaster@localhost log]$ free -m
> > > >              total       used       free     shared    buffers
> > > > cached
> > > > Mem:           503        409         93          0
> > > > 30        106
> > > > -/+ buffers/cache:        273        230
> > > > Swap:            0          0          0
> > > > [webmaster@localhost log]$
> > >
> > > I think that's your problem. IIUC, you think you have 2 gigs of swap
> > > space. However, your kernel doesn't think you have any swap space...
> > >
> > > I'm not claiming that Geronimo is totally clean. However, I don't see
> > > any significant signs of a memory leak in the Geronimo process. Can
> > > you fix up your swap space and let us know how things go?
> > >
> > >
> > > >
> > > >>     ps aux
> > > >
> > > > [webmaster@localhost log]$ ps aux
> > > > USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME
> > > > COMMAND
> > > > root         1  0.0  0.0   1748   144 ?        S    Jan10   0:04
> > > > init [5]
> > > > root         2  0.0  0.0      0     0 ?        SN   Jan10   0:00
> > > > [ksoftirqd/0]
> > > > root         3  0.0  0.0      0     0 ?        S    Jan10   0:00
> > > > [watchdog/0]
> > > > root         4  0.0  0.0      0     0 ?        S<   Jan10   0:00
> > > > [events/0]
> > > > root         5  0.0  0.0      0     0 ?        S<   Jan10   0:00
> > > > [khelper]
> > > > root         6  0.0  0.0      0     0 ?        S<   Jan10   0:00
> > > > [kthread]
> > > > root         8  0.0  0.0      0     0 ?        S<   Jan10   0:00
> > > > [kblockd/0]
> > > > root        11  0.0  0.0      0     0 ?        S    Jan10   0:00
> > > > [khubd]
> > > > root        73  0.0  0.0      0     0 ?        S    Jan10   0:01
> > > > [pdflush]
> > > > root        74  0.0  0.0      0     0 ?        S    Jan10   0:02
> > > > [pdflush]
> > > > root        76  0.0  0.0      0     0 ?        S<   Jan10   0:00
> > > > [aio/0]
> > > > root        75  0.0  0.0      0     0 ?        S    Jan10   0:11
> > > > [kswapd0]
> > > > root        39  0.0  0.0      0     0 ?        S    Jan10   0:00
> > > > [kapmd]
> > > > root       163  0.0  0.0      0     0 ?        S    Jan10   0:00
> > > > [kseriod]
> > > > root       324  0.0  0.0      0     0 ?        S    Jan10   0:23
> > > > [kjournald]
> > > > root       814  0.0  0.0   1636    76 ?        S<s  Jan10   0:00 udevd
> > > > root       879  0.0  0.0      0     0 ?        S    Jan10   0:00
> > > > [kgameportd]
> > > > root      1194  0.0  0.0      0     0 ?        S    Jan10   0:00
> > > > [scsi_eh_0]
> > > > root      1195  0.0  0.0      0     0 ?        S    Jan10   0:00
> > > > [usb-storage]
> > > > root      1615  0.0  0.0   1620   236 ?        Ss   Jan10   0:09
> > > > syslogd -m 0
> > > > root      1617  0.0  0.0   1572   196 ?        Ss   Jan10   0:00
> > > > klogd -x
> > > > rpc       1634  0.0  0.0   1696    88 ?        Ss   Jan10   0:00
> > > > portmap
> > > > root      1643  0.0  0.0  11908   252 ?        S<sl Jan10   0:00
> > > > auditd
> > > > root      1647  0.0  0.0      0     0 ?        S<   Jan10   0:00
> > > > [kauditd]
> > > > root      1672  0.0  0.0   4384   220 ?        Ss   Jan10   0:02
> > > > rpc.idmapd
> > > > root      1708  0.0  0.0      0     0 ?        S<   Jan10   0:00
> > > > [krfcommd]
> > > > root      1718  0.0  0.0   1556    60 ?        Ss   Jan10   0:00
> > > > /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-scripts/apmscript
> > > > root      1827  0.0  0.0   1804   180 ?        Ss   Jan10   0:09
> > > > /usr/sbin/automount --timeout=60 /misc file /etc/auto.misc
> > > > root      1868  0.0  0.0   1792   176 ?        Ss   Jan10   0:09
> > > > /usr/sbin/automount --timeout=60 /net program /etc/auto.net
> > > > root      1940  0.0  0.0   4392   496 ?        Ss   Jan10   0:05 /
> > > > usr/sbin/sshd
> > > > root      1949  0.0  0.0   2180   148 ?        Ss   Jan10   0:00
> > > > xinetd -stayalive -pidfile /var/run/xinetd.pid
> > > > ntp       1964  0.0  0.7   4044  4044 ?        SLs  Jan10   0:09 ntpd
> > > > -u ntp:ntp -p /var/run/ntpd.pid -g
> > > > root      1973  0.0  0.1   4068   772 ?        S    Jan10   0:00
> > > > /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
> > > > root      1980  0.0  0.7   4044  4044 ?        S    Jan10   0:00 ntpd
> > > > -u ntp:ntp -p /var/run/ntpd.pid -g
> > > > root      1991  0.0  0.4   9504  2352 ?        Ss   Jan10   0:10
> > > > sendmail: accepting connections
> > > > smmsp     1997  0.0  0.3   6968  1940 ?        Ss   Jan10   0:00
> > > > sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
> > > > root      2015  0.0  0.1   1772   528 ?        Ss   Jan10   0:06 gpm
> > > > -m /dev/input/mice -t imps2
> > > > root      2030  0.0  1.7  35568  8884 ?        Ss   Jan10   0:14 /
> > > > usr/sbin/httpd
> > > > iiimd     2060  0.0  0.4   9932  2092 ?        S    Jan10   0:00 /
> > > > usr/bin/iiimd
> > > > root      2068  0.0  0.1   4548   988 ?        Ss   Jan10   0:04 crond
> > > > xfs       2104  0.0  0.7   5620  3992 ?        Ss   Jan10   0:06 xfs
> > > > -droppriv -daemon
> > > > root      2120  0.0  0.2  10572  1432 ?        Ss   Jan10   0:00
> > > > smbd -D
> > > > root      2122  0.0  0.2   8152  1460 ?        Ss   Jan10   1:04
> > > > nmbd -D
> > > > root      2123  0.0  0.2  10572  1432 ?        S    Jan10   0:00
> > > > smbd -D
> > > > root      2131  0.0  0.2   9064  1528 ?        Ss   Jan10   0:02
> > > > winbindd
> > > > root      2135  0.0  0.2   9036  1160 ?        S    Jan10   0:00
> > > > winbindd
> > > > root      2147  0.0  0.1   1796   676 ?        Ss   Jan10   0:00 /
> > > > usr/sbin/atd
> > > > root      2158  0.0  0.1   2964   824 ?        Ss   Jan10   0:18
> > > > cups-config-daemon
> > > > root      2235  0.0  0.0   1556   416 tty1     Ss+  Jan10   0:00
> > > > /sbin/mingetty tty1
> > > > root      2236  0.0  0.0   1552   416 tty2     Ss+  Jan10   0:00
> > > > /sbin/mingetty tty2
> > > > root      2237  0.0  0.0   1552   416 tty3     Ss+  Jan10   0:00
> > > > /sbin/mingetty tty3
> > > > root      2238  0.0  0.0   1556   416 tty4     Ss+  Jan10   0:00
> > > > /sbin/mingetty tty4
> > > > root      2239  0.0  0.0   1552   416 tty5     Ss+  Jan10   0:00
> > > > /sbin/mingetty tty5
> > > > root      2240  0.0  0.0   1552   416 tty6     Ss+  Jan10   0:00
> > > > /sbin/mingetty tty6
> > > > root      2241  0.0  0.1   4380   748 ?        Ss   Jan10   0:00
> > > > /bin/sh /etc/X11/prefdm -nodaemon
> > > > root      2430  0.0  0.1  11276   944 ?        S    Jan10   0:00
> > > > /usr/bin/gdm-binary -nodaemon
> > > > root      2465  0.0  0.2  11904  1300 ?        S    Jan10   0:00
> > > > /usr/bin/gdm-binary -nodaemon
> > > > root      2473 32.1 10.3  75476 53512 ?        S    Jan10 5985:16
> > > > /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
> > > > h         2898  0.0  0.5  21800  2604 ?        Ss   Jan10   0:00
> > > > /usr/bin/gnome-session
> > > > h         2946  0.0  0.1   3864   940 ?        Ss   Jan10   0:01
> > > > /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session
> > > > /etc/X11/xinit/Xclients
> > > > h         2949  0.0  0.1   2564   632 ?        Ss   Jan10   0:00
> > > > dbus-daemon --fork --print-pid 8 --print-address 6 --session
> > > > h         2950  0.0  0.1   2652   520 ?        S    Jan10   0:00
> > > > /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
> > > > h         2956  0.0  1.4  11740  7364 ?        S    Jan10   0:05
> > > > /usr/libexec/gconfd-2 5
> > > > h         2959  0.0  0.1   2232   612 ?        S    Jan10   0:00
> > > > /usr/bin/gnome-keyring-daemon
> > > > h         2961  0.0  0.2   7180  1352 ?        Ss   Jan10   0:00
> > > > /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=19
> > > > h         2963  0.0  0.4  14076  2512 ?        Ss   Jan10   0:12
> > > > /usr/bin/metacity --sm-client-id=default1
> > > > h         2965  0.0  0.5  20604  2644 ?        S    Jan10   0:03
> > > > /usr/libexec/gnome-settings-daemon
> > > > --oaf-activate-iid=OAFIID:GNOME_SettingsDaemon --oaf-ior-fd=
> > > > h         2973  0.0  0.2   2868  1412 ?        S    Jan10   2:27
> > > > /usr/libexec/gam_server
> > > > h         2981  0.0  0.2   3948  1452 ?        S    Jan10   0:09
> > > > xscreensaver -nosplash
> > > > h         2997  0.0  0.9  24888  4808 ?        Ssl  Jan10   0:06
> > > > gnome-panel --sm-client-id default2
> > > > h         2999  0.0  0.8  30320  4496 ?        Ssl  Jan10   0:09
> > > > nautilus --no-default-window --sm-client-id default3
> > > > h         3012  0.0  0.2  11912  1324 ?        Sl   Jan10   0:00
> > > > /usr/libexec/gnome-vfs-daemon
> > > > --oaf-activate-iid=OAFIID:GNOME_VFS_Daemon_Factory --oaf-ior-fd=2
> > > > h         3014  0.0  0.6  21136  3532 ?        S    Jan10   1:59
> > > > /usr/libexec/gnome-netstatus-applet
> > > > --oaf-activate-iid=OAFIID:GNOME_NetstatusApplet_Factory --o
> > > > h         3016  0.0  0.6  22580  3448 ?        S    Jan10   0:06
> > > > /usr/libexec/wnck-applet
> > > > --oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=31
> > > > h         3018  0.0  0.5  41556  2840 ?        Ss   Jan10   0:18
> > > > eggcups --sm-client-id default5
> > > > h         3022  0.0  0.3  13160  1584 ?        Ss   Jan10   0:21
> > > > pam-panel-icon --sm-client-id default0
> > > > h         3024  0.0  2.7  40808 14172 ?        RNs  Jan10   4:05
> > > > /usr/bin/python /usr/bin/rhn-applet-gui --sm-client-id default4
> > > > root      3026  0.0  0.1   1696   576 ?        S    Jan10   1:00
> > > > /sbin/pam_timestamp_check -d root
> > > > h         3033  0.0  0.1   2144   588 ?        S    Jan10   0:02
> > > > /usr/libexec/mapping-daemon
> > > > h         3036  0.0  0.5  20564  3020 ?        S    Jan10   2:55
> > > > /usr/libexec/multiload-applet-2
> > > > --oaf-activate-iid=OAFIID:GNOME_MultiLoadApplet_Factory --oaf-i
> > > > h         3039  0.0  0.3  20224  1876 ?        S    Jan10   0:00
> > > > /usr/libexec/notification-area-applet
> > > > --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Fa
> > > > h         3041  0.0  0.7  22248  3724 ?        S    Jan10   0:56
> > > > /usr/libexec/clock-applet
> > > > --oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=38
> > > > h         3043  0.0  0.7  23532  3736 ?        S    Jan10   1:27
> > > > /usr/libexec/mixer_applet2
> > > > --oaf-activate-iid=OAFIID:GNOME_MixerApplet_Factory --oaf-ior-fd=39
> > > > h         3598  0.0  1.5  39808  8016 ?        Sl   Jan10   0:37
> > > > gnome-terminal
> > > > h         3600  0.0  0.1   2152   540 ?        S    Jan10   0:00
> > > > gnome-pty-helper
> > > > h         3739  0.0  0.1   4384   852 pts/3    Ss   Jan10   0:00 bash
> > > > root      4408  0.0  0.1   4420   792 pts/3    S    Jan10   0:00 su
> > > > - webmaster
> > > > 505       4411  0.0  0.1   4384   892 pts/3    S+   Jan10   0:00 -bash
> > > > h         4708  0.0  0.1   4384   864 pts/4    Ss+  Jan10   0:00 bash
> > > > root     15082  0.0  0.5   9736  3080 ?        Ss   Jan22   0:01 cupsd
> > > > apache   15110  0.0  1.8  35700  9676 ?        S    Jan22   0:00 /
> > > > usr/sbin/httpd
> > > > apache   15111  0.0  1.9  35832  9828 ?        S    Jan22   0:00 /
> > > > usr/sbin/httpd
> > > > apache   15112  0.0  1.8  35700  9680 ?        S    Jan22   0:00 /
> > > > usr/sbin/httpd
> > > > apache   15117  0.0  1.8  35756  9712 ?        S    Jan22   0:00 /
> > > > usr/sbin/httpd
> > > > apache   15118  0.0  1.8  35764  9760 ?        S    Jan22   0:00 /
> > > > usr/sbin/httpd
> > > > apache   15119  0.0  1.8  35700  9668 ?        S    Jan22   0:00 /
> > > > usr/sbin/httpd
> > > > apache   15120  0.0  1.8  35700  9700 ?        S    Jan22   0:00 /
> > > > usr/sbin/httpd
> > > > apache   15122  0.0  1.9  35832  9808 ?        S    Jan22   0:00 /
> > > > usr/sbin/httpd
> > > > root     24603  0.0  0.2   5660  1192 ?        S    Jan22   0:00
> > > > /usr/libexec/gconfd-2 4
> > > > h        24812  0.0  1.2  38076  6332 ?        Sl   Jan22   0:08
> > > > gnome-terminal
> > > > h        24815  0.0  0.5   7212  2872 ?        S    Jan22   0:00
> > > > /usr/libexec/gconfd-2 14
> > > > h        24817  0.0  0.2   7048  1212 ?        Ss   Jan22   0:00
> > > > /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=18
> > > > h        24818  0.0  0.1   2156   544 ?        S    Jan22   0:00
> > > > gnome-pty-helper
> > > > h        24819  0.0  0.1   4384   864 pts/1    Ss+  Jan22   0:00 bash
> > > > h        25027  1.5  2.2  29200 11428 ?        Sl   Jan22  18:18
> > > > gnome-system-monitor
> > > > h        25030  0.0  0.2  11908  1320 ?        Sl   Jan22   0:00
> > > > /usr/libexec/gnome-vfs-daemon
> > > > --oaf-activate-iid=OAFIID:GNOME_VFS_Daemon_Factory --oaf-ior-fd=2
> > > > root      9777  0.0  0.4   7248  2220 ?        Ss   19:08   0:00 sshd:
> > > > webmaster [priv]
> > > > 505       9779  0.0  0.4   7408  2324 ?        S    19:08   0:00 sshd:
> > > > webmaster@pts/2
> > > > 505       9780  0.1  0.2   4512  1520 pts/2    Ss   19:08   0:00 -bash
> > > > 505       9879 34.6 26.3 349192 135648 pts/2   Sl   19:12   2:27
> > > > /home/webmaster/usr/java/j2sdk1.4.2_10/bin/java -Djava.endorsed.dirs=
> > > > -Dorg.apache.geronimo.bas
> > > > h         9925  0.2  0.4   5776  2568 ?        RN   19:13   0:00
> > > > /usr/libexec/xscreensaver/starwars -root
> > > > h         9928  0.0  0.0      0     0 ?        ZN   19:13   0:00
> > > > [sh] <defunct>
> > > > 505      10135  0.0  0.1   4484   920 pts/2    R+   19:19   0:00 ps
> > > > aux
> > > > [webmaster@localhost log]$
> > > >
> > > >>     vmstat 1 2
> > > >
> > > > [webmaster@localhost log]$ vmstat 1 2
> > > > procs -----------memory---------- ---swap-- -----io---- --system--
> > > > ----cpu----
> > > >  r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs
> > > > us sy id wa
> > > >  4  0      0  95028  31088 109196    0    0     4     9    3     3
> > > > 44  3 52  0
> > > >  3  0      0  95028  31088 109196    0    0     0     0 1005   132
> > > > 100  0  0  0
> > > > [webmaster@localhost log]$
> > > >
> > > >
> > > > Thanks again!!
> > > > Qingtian
> > > >
> > > >
> > > >
> > > >>
> > > >> --kevan
> > > >>
> > >
> > >
> >
>

Mime
View raw message