Hi,

Many ppl using 1.3.1 specifically have noted huge memory usage increases 
(leaks) which either take a long time to clean themselves up or are permanent.

The issue has been reported by ppl using JNI, tomcat, app contexts etc etc so 
is a JDK bug.

Sun still haven't fixed it (I just checked) Maybe 1.4 fixes it, but that is 
still in Beta so I wouldn't use it on a deployed platform just yet.

Apparently using 1.3 fixes it, but its a real pain to find. Sun don't 
actually advertise its whereabouts on their site.

The blackdown JDK doesn't seem to have this problem so you could try that (I 
don't know where it can be found)

Hope that helps,

Adam.

---- 
Adam Fowler 
Help Desk Live Project 
Information Services 
University of Wales, Aberystwyth 
Web guy+author on the TomcatBook Project 
http://tomcatbook.sourceforge.net 
e-mail: [EMAIL PROTECTED] 
---- 

On Friday 13 July 2001 16:33, you wrote:
> What is the infamous bug for jdk?
>
> Thanks!
> Dan
>
>
> From: Adam Fowler <[EMAIL PROTECTED]>
>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: java-linux-tomcat configuration problem
> >Date: Thu, 12 Jul 2001 22:09:53 +0000
> >
> >Hi,
> >
> >You have two versions of httpd running!?! Make sure that if you have two
> >version using tomcat then you have two tomcat's running. That might answer
> >it.
> >
> >Otherwise it might be the infamous bug to do with the 1.3.1 JDK (although,
> >again, I had no problems on Mandrake! Must be the pretty penguins) You
> > ould try the 1.3 JDK (if u can find it!) or *cringe* the 1.4 JDK -
> > although not supported.
> >
> >Adam.
> >
> >On Thursday 12 July 2001 13:01, you wrote:
> > > Hello again:
> > >
> > > Quick thanks for your responses  .. now more background, as requested.
> > >
> > > a) The contexts that I am running are the ones that came with apache,
> > > outlined in server.xml.  I was able to start up those instances with
> > > jre (but not the example jsps, another problem).
> > >
> > > b) I am running Red Hat 6.2.
> > >
> > > c) I am using Sun's jdk 1.3.1
> > >
> > > d)  Adam, here is the top and ps -x output (the java threads are
> > > towards the end in ps -x, and are at the top of "top"):
> > >   PID TTY      STAT   TIME COMMAND
> > >     1 ?        S      0:02 init
> > >     2 ?        SW     0:00 [kflushd]
> > >     3 ?        SW     0:01 [kupdate]
> > >     4 ?        SW     0:00 [kpiod]
> > >     5 ?        SW     0:00 [kswapd]
> > >     6 ?        SW<    0:00 [mdrecoveryd]
> > >     7 ?        SW<    0:00 [raid1d]
> > >     8 ?        SW<    0:00 [raid1d]
> > >     9 ?        SW<    0:00 [raid1d]
> > >    10 ?        SW<    0:00 [raid1d]
> > >   171 ?        S      0:00 syslogd -m 0
> > >   180 ?        S      0:00 klogd
> > >   209 ?        S      0:00 /usr/sausalito/sbin/cced
> > >   586 ?        S      0:00 crond
> > >   598 ?        S      0:00 inetd
> > >   628 ?        S      0:00 named
> > >   644 ?        S      0:00 /usr/sbin/dhcpd -q eth0
> > >   649 ?        S      0:01 /usr/sbin/ahttpd -f
> >
> >/etc/admserv/conf/httpd.conf
> >
> > >   673 ?        S      0:01 /usr/sbin/httpd -f
> > > /etc/httpd/conf/httpd.conf 705 ?        S      0:00 sendmail: accepting
> > > connections
> > >   717 ?        S      0:00 sh /usr/bin/safe_mysqld
> >
> >--datadir=/var/lib/mysql
> >
> > > --pi
> > >   784 ?        S      0:00 /usr/sbin/atalkd
> > >   807 ?        S      0:00 smbd -D
> > >   816 ?        S      0:00 nmbd -D
> > >   825 ?        S      0:00 /sbin/lcdsleep
> > >   867 ?        S      0:00 /sbin/consoled /sbin/getty ttyS0 115200
> > >   904 ?        S      0:00 /usr/sbin/afpd -U uams_clrtxt.so,uams_dhx.so
> >
> >-g
> >
> > > guest
> > > 1353 ?        S      0:00 in.telnetd: 10.6.18.30
> > > 1354 pts/0    S      0:00 login -- admin
> > > 1758 ?        S      0:00 in.telnetd: 10.6.18.30
> > > 1759 pts/1    S      0:00 login -- admin
> > > 1793 pts/1    S      0:00 su
> > > 1794 pts/1    S      0:00 bash
> > > 1952 ?        S      0:00 smbd -D
> > > 2283 pts/0    S      0:00 su
> > > 2284 pts/0    S      0:00 bash
> > > 2403 pts/0    R      2:07
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2448 pts/0    S      0:00
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2449 pts/0    S      0:00
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2450 pts/0    S      0:00
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2451 pts/0    S      0:00
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2452 pts/0    S      0:00
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2453 pts/0    S      0:00
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2454 pts/0    S      0:00
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2455 pts/0    S      0:00
> >
> >/usr/java/jdk1.3.1/bin/i386/native_threads/java
> >
> > > -Dtom
> > > 2552 pts/1    R      0:00 ps -x
> > > 2553 pts/1    R      0:00 bash
> > >
> > >   PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME
> >
> >COMMAND
> >
> > > 2403 root      11   0  8868 8868  4728 R       0 94.8  6.9   0:17 java
> > > 2456 root       1   0   872  872   680 R       0  0.7  0.6   0:00 top
> > >     1 root       0   0   480  480   416 S       0  0.0  0.3   0:02 init
> > >     2 root       0   0     0    0     0 SW      0  0.0  0.0   0:00
> >
> >kflushd
> >
> > >     3 root       0   0     0    0     0 SW      0  0.0  0.0   0:01
> >
> >kupdate
> >
> > >     4 root       0   0     0    0     0 SW      0  0.0  0.0   0:00
> > > kpiod 5 root       0   0     0    0     0 SW      0  0.0  0.0   0:00
> >
> >kswapd
> >
> > >     6 root     -20 -20     0    0     0 SW<     0  0.0  0.0   0:00
> > > mdrecoveryd
> > >     7 root     -20 -20     0    0     0 SW<     0  0.0  0.0   0:00
> >
> >raid1d
> >
> > >     8 root     -20 -20     0    0     0 SW<     0  0.0  0.0   0:00
> >
> >raid1d
> >
> > >     9 root     -20 -20     0    0     0 SW<     0  0.0  0.0   0:00
> >
> >raid1d
> >
> > >    10 root     -20 -20     0    0     0 SW<     0  0.0  0.0   0:00
> >
> >raid1d
> >
> > >   171 root       0   0   488  484   396 S       0  0.0  0.3   0:00
> >
> >syslogd
> >
> > >   180 root       0   0   708  704   328 S       0  0.0  0.5   0:00
> > > klogd 209 root       0   0  1040 1040   524 S       0  0.0  0.8   0:00
> > > cced 586 root       0   0   508  504   428 S       0  0.0  0.3   0:00
> > > crond 598 root       0   0   444  440   380 S       0  0.0  0.3   0:00
> > > inetd
> > >
> > > Thanks again,
> > > Dan
> > >
> > > From: Adam Fowler <[EMAIL PROTECTED]>
> > >
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: java-linux-tomcat configuration problem
> > > >Date: Wed, 11 Jul 2001 17:34:54 +0000
> > > >
> > > >Hi,
> > > >
> > > >Can you include a copy of ps x command output and top please? Also,
> >
> >who's
> >
> > > >jdk
> > > >ru using? Sun's or blackdown?
> > > >
> > > >This sounds very strange as I upgraded on mandrake fine. You might
> >
> >wanna
> >
> > > >recheck the path variable and make sure that the new java is at the
> > > >beginning
> > > >of the path var, else if u also point across an older version it will
> >
> >use
> >
> > > >that.
> > > >
> > > >Adam.
> > > >
> > > >On Wednesday 11 July 2001 15:03, you wrote:
> > > > > I installed jdk 1.3.1 on my linux box to support tomcat, and set
> > > > > the
> > > >
> > > >PATH
> > > >
> > > > > variable accordingly.  However, now the instances of my server
> > > > > don't
> > > >
> > > >start
> > > >
> > > > > up and java hangs.  (The TOP command shows that java is consuming
> >
> >97%
> >
> > > > > of
> > > >
> > > >my
> > > >
> > > > > CPU!!!).  Has anybody seen this behaviour before?  If so, what is
> >
> >the
> >
> > > > > remedy?
> > > > >
> > > > > Thanks!
> > > > > Dan
> > > > > _________________________________________________________________
> > > > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > >
> > > _________________________________________________________________
> > > Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com

-- 

Reply via email to