You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Summit <sc...@eskimo.com> on 2004/08/01 15:22:06 UTC

horrible problems with TC4.1 under RedHat Advanced Server

I've got a big, complicated web application (too complicated to
go into the details of here), and I'm having problems moving from
Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
(The move is for support reasons.)

Things were working basically okay under Red Hat 9.
But under Advanced Server or Enterprise Server, I have these two
problems:

1. Some pretty high percentage of the time, Tomcat fails to
   start.  After invoking "catalina.sh start", I get the errors

	Another exception has been detected while we were handling last error.
	Dumping information about last error:
	ERROR REPORT FILE = (N/A)
	PC                = 0x00000000
	SIGNAL            = 11
	FUNCTION NAME     = (N/A)
	OFFSET            = 0xFFFFFFFF
	LIBRARY NAME      = (N/A)

   Simply retrying the command usually works, although sometimes
   it takes three tries.

2. Much more seriously, my web apps have been mysteriously hanging.
   They don't tend to crash or burn or emit error messages, they
   just... stop... responding.  In one case (that is, for one of
   my applications) they seem to hang after acquiring and holding
   certain database resources, which ends up meaning that other
   applications running on other servers also accessing that
   database also hang.

   In some cases these hangs are accompanied by the messages

	org.apache.tomcat.util.threads.ThreadPool logFull
	SEVERE: All threads (75) are currently busy, waiting.
	Increase maxThreads (75) or check the servlet status

   I increased maxThreads (and maxProcessors, since the
   documentation is inconsistent) to 200, but now I just get
   "All threads (200) are currently busy, waiting".  Furthermore,
   it's not clear whether this thread exhaustion is the primary
   cause of my problems, or just one of the symptoms.

I suspect that there's some pernicious incompatibility between
this version of Tomcat, this version of j2sdk, and the C
libraries in these releases of RedHat.  (When I built these
machines, I think I had to manually install a C compatibility
library to get Java to work at all.)

There was a message to this list a month or so ago from
Harald Henkel describing some similar-sounding problems, but
it doesn't look like he got an answer.  He mentioned setting
LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
sounded like that only slightly ameliorated, but didn't fix,
his problem.

Anybody got any ideas?  Has this sort of thing happened before?
(Web searches haven't really turned up anything.)
Is there something I'm missing?

Here are the exact details of what I'm running:

	Jakarta Tomcat 4.1.30
	j2sdk 1.4.2_04

Working system:

	Red Hat Linux release 9 (Shrike)
	kernel 2.4.20-8smp

Troublesome systems:

	Red Hat Enterprise Linux ES release 3 (Taroon)
	kernel 2.4.21-4.ELsmp

	Red Hat Enterprise Linux AS release 3 (Taroon Update 1)
	kernel 2.4.21-9.ELsmp

Thanks in advance for any suggestions.

					Steve Summit
					scs@eskimo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: horrible problems with TC4.1 under RedHat Advanced Server

Posted by "Ruth, Brice" <br...@fiskars.com>.
Just as an FYI - with Sun's JVM, on Redhat ES 2.1 systems, I've seen no 
problems ... we've been running a production system which averages about 
57K visitors, 768K page views a month - on Tomcat 4.1.27 and Sun's 1.4.2 
JDK (RPM install).

This is running a slightly modified Rackspace kernel derivative of 2.4.9.

Chong Yu Meng wrote:

> I think RHAS is running NPTL.
>
> If you're using IBM's Java 1.4, 1.3.x or earlier and RH9, RHEL, RHAS , 
> you need to set LD_ASSUME_KERNEL=2.2.5.
> If you're using IBM's Java 1.4.1 or better on RH9, RHEL (not sure 
> about RHAS), you don't need to set LD_ASSUME_KERNEL at all
> If you're using IBM's Java 1.4.1 or better on Fedora Core 2, you 
> definitely need to upgrade your kernel version to 2.6.6-1 or better. 
> Though, if you're using the latest 2.6.6-1.435.2.3, you may get some 
> strange problems if you're running on a Thinkpad, so use the earlier 
> 2.6.6-1.435 (if you can do without the security update).
>
> I have not used Sun's Java on Red Hat systems, so I cannot say what 
> will happen.
>
> I have used Blackdown's 1.4.1, compiled with gcc 3.2 on FC2 and they 
> work fine, even on the stock install kernel (though freezes can still 
> happen). Although benchmarks (Volano Report) show Blackdown to be 
> slower and possibly less scalable, I find that it performs on a wider 
> range of Linux platforms.
>
> I find the following procedure helps me to identify the problem:
>
> After installing Java on your system, just execute "java -version". If 
> you get a segmentation fault, you should try setting LD_ASSUME_KERNEL 
> to 2.2.5, then 2.4.1. 2.2.5 bypasses the NPTL. See which setting works 
> for you.
>
> If you don't get a segmentation fault, try running the SwingSet2 
> application which should come with your Java distribution. On FC2's 
> stock kernel, this can freeze your desktop so bad that you'll need to 
> power down your system manually. Upgrade to the latest (or next to 
> latest kernel) and you should be fine.
>
> There may be other problems I'm not aware of. Please post them here. 
> I'm especially interested in hearing from people using the Sun JVM.
>
> Regards,
> pascal chong
>
>
>
> Peter Lin wrote:
>
>> this is most definitely an issue with glibc, since I've seen it in the
>> past on my machine. I've had it happen with Sun jvm and IBM jvm for
>> redhat in the past.
>>
>> your best bet is to search the redhat mailing list for solutions to 
>> the problem.
>>
>> peter
>>
>> On Sun, 01 Aug 2004 10:54:51 -0700, David Rees 
>> <dr...@greenhydrant.com> wrote:
>>  
>>
>>> Steve Summit wrote, On 8/1/2004 6:22 AM:
>>>   
>>>
>>>> I've got a big, complicated web application (too complicated to
>>>> go into the details of here), and I'm having problems moving from
>>>> Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
>>>> (The move is for support reasons.)
>>>>     
>>>
>>> >
>>>   
>>>
>>>> I suspect that there's some pernicious incompatibility between
>>>> this version of Tomcat, this version of j2sdk, and the C
>>>> libraries in these releases of RedHat.  (When I built these
>>>> machines, I think I had to manually install a C compatibility
>>>> library to get Java to work at all.)
>>>>
>>>> There was a message to this list a month or so ago from
>>>> Harald Henkel describing some similar-sounding problems, but
>>>> it doesn't look like he got an answer.  He mentioned setting
>>>> LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
>>>> sounded like that only slightly ameliorated, but didn't fix,
>>>> his problem.
>>>>     
>>>
>>> It's definitely some sort of JVM/OS issue, and not directly related to
>>> Tomcat.  What glibc version are you running, are you running all errata
>>> for the system (up2date)?  Also upgarde to the latest JDK, and finally,
>>> if it is still not stable, try a LD_ASSUME_KERNEL setting of 2.2.5.
>>>
>>> -Dave
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>>   
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>>  
>>
>
>

-- 
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: horrible problems with TC4.1 under RedHat Advanced Server

Posted by Chong Yu Meng <ch...@cymulacrum.net>.
I think RHAS is running NPTL.

If you're using IBM's Java 1.4, 1.3.x or earlier and RH9, RHEL, RHAS , 
you need to set LD_ASSUME_KERNEL=2.2.5.
If you're using IBM's Java 1.4.1 or better on RH9, RHEL (not sure about 
RHAS), you don't need to set LD_ASSUME_KERNEL at all
If you're using IBM's Java 1.4.1 or better on Fedora Core 2, you 
definitely need to upgrade your kernel version to 2.6.6-1 or better. 
Though, if you're using the latest 2.6.6-1.435.2.3, you may get some 
strange problems if you're running on a Thinkpad, so use the earlier 
2.6.6-1.435 (if you can do without the security update).

I have not used Sun's Java on Red Hat systems, so I cannot say what will 
happen.

I have used Blackdown's 1.4.1, compiled with gcc 3.2 on FC2 and they 
work fine, even on the stock install kernel (though freezes can still 
happen). Although benchmarks (Volano Report) show Blackdown to be slower 
and possibly less scalable, I find that it performs on a wider range of 
Linux platforms.

I find the following procedure helps me to identify the problem:

After installing Java on your system, just execute "java -version". If 
you get a segmentation fault, you should try setting LD_ASSUME_KERNEL to 
2.2.5, then 2.4.1. 2.2.5 bypasses the NPTL. See which setting works for you.

If you don't get a segmentation fault, try running the SwingSet2 
application which should come with your Java distribution. On FC2's 
stock kernel, this can freeze your desktop so bad that you'll need to 
power down your system manually. Upgrade to the latest (or next to 
latest kernel) and you should be fine.

There may be other problems I'm not aware of. Please post them here. I'm 
especially interested in hearing from people using the Sun JVM.

Regards,
pascal chong



Peter Lin wrote:

>this is most definitely an issue with glibc, since I've seen it in the
>past on my machine. I've had it happen with Sun jvm and IBM jvm for
>redhat in the past.
>
>your best bet is to search the redhat mailing list for solutions to the problem.
>
>peter
>
>On Sun, 01 Aug 2004 10:54:51 -0700, David Rees <dr...@greenhydrant.com> wrote:
>  
>
>>Steve Summit wrote, On 8/1/2004 6:22 AM:
>>    
>>
>>>I've got a big, complicated web application (too complicated to
>>>go into the details of here), and I'm having problems moving from
>>>Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
>>>(The move is for support reasons.)
>>>      
>>>
>> >
>>    
>>
>>>I suspect that there's some pernicious incompatibility between
>>>this version of Tomcat, this version of j2sdk, and the C
>>>libraries in these releases of RedHat.  (When I built these
>>>machines, I think I had to manually install a C compatibility
>>>library to get Java to work at all.)
>>>
>>>There was a message to this list a month or so ago from
>>>Harald Henkel describing some similar-sounding problems, but
>>>it doesn't look like he got an answer.  He mentioned setting
>>>LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
>>>sounded like that only slightly ameliorated, but didn't fix,
>>>his problem.
>>>      
>>>
>>It's definitely some sort of JVM/OS issue, and not directly related to
>>Tomcat.  What glibc version are you running, are you running all errata
>>for the system (up2date)?  Also upgarde to the latest JDK, and finally,
>>if it is still not stable, try a LD_ASSUME_KERNEL setting of 2.2.5.
>>
>>-Dave
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>


-- 

=======================================================================
Pascal Chong
email: chongym@cymulacrum.net
web: http://cymulacrum.net

/"\
\ / ASCII ribbon campaign
 X  against HTML mail 
/ \ and postings

=======================================================================

 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: horrible problems with TC4.1 under RedHat Advanced Server

Posted by Marc Boorshtein <ma...@octetstring.com>.
Which JDK are you using?  There is an incompatibility between jdk1.3  
and redhat enterprise 3.0.
------------------------------------------------------------------------ 
--------------------------
Marc Boorshtein
Sr. Software Engineer, Octet String
marc.boorshtein@octetstring.com
On Aug 1, 2004, at 5:34 PM, Peter Lin wrote:

> this is most definitely an issue with glibc, since I've seen it in the
> past on my machine. I've had it happen with Sun jvm and IBM jvm for
> redhat in the past.
>
> your best bet is to search the redhat mailing list for solutions to  
> the problem.
>
> peter
>
> On Sun, 01 Aug 2004 10:54:51 -0700, David Rees  
> <dr...@greenhydrant.com> wrote:
>> Steve Summit wrote, On 8/1/2004 6:22 AM:
>>> I've got a big, complicated web application (too complicated to
>>> go into the details of here), and I'm having problems moving from
>>> Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
>>> (The move is for support reasons.)
>>>
>>> I suspect that there's some pernicious incompatibility between
>>> this version of Tomcat, this version of j2sdk, and the C
>>> libraries in these releases of RedHat.  (When I built these
>>> machines, I think I had to manually install a C compatibility
>>> library to get Java to work at all.)
>>>
>>> There was a message to this list a month or so ago from
>>> Harald Henkel describing some similar-sounding problems, but
>>> it doesn't look like he got an answer.  He mentioned setting
>>> LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
>>> sounded like that only slightly ameliorated, but didn't fix,
>>> his problem.
>>
>> It's definitely some sort of JVM/OS issue, and not directly related to
>> Tomcat.  What glibc version are you running, are you running all  
>> errata
>> for the system (up2date)?  Also upgarde to the latest JDK, and  
>> finally,
>> if it is still not stable, try a LD_ASSUME_KERNEL setting of 2.2.5.
>>
>> -Dave
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: horrible problems with TC4.1 under RedHat Advanced Server

Posted by Peter Lin <wo...@gmail.com>.
this is most definitely an issue with glibc, since I've seen it in the
past on my machine. I've had it happen with Sun jvm and IBM jvm for
redhat in the past.

your best bet is to search the redhat mailing list for solutions to the problem.

peter

On Sun, 01 Aug 2004 10:54:51 -0700, David Rees <dr...@greenhydrant.com> wrote:
> Steve Summit wrote, On 8/1/2004 6:22 AM:
> > I've got a big, complicated web application (too complicated to
> > go into the details of here), and I'm having problems moving from
> > Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
> > (The move is for support reasons.)
>  >
> > I suspect that there's some pernicious incompatibility between
> > this version of Tomcat, this version of j2sdk, and the C
> > libraries in these releases of RedHat.  (When I built these
> > machines, I think I had to manually install a C compatibility
> > library to get Java to work at all.)
> >
> > There was a message to this list a month or so ago from
> > Harald Henkel describing some similar-sounding problems, but
> > it doesn't look like he got an answer.  He mentioned setting
> > LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
> > sounded like that only slightly ameliorated, but didn't fix,
> > his problem.
> 
> It's definitely some sort of JVM/OS issue, and not directly related to
> Tomcat.  What glibc version are you running, are you running all errata
> for the system (up2date)?  Also upgarde to the latest JDK, and finally,
> if it is still not stable, try a LD_ASSUME_KERNEL setting of 2.2.5.
> 
> -Dave
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: horrible problems with TC4.1 under RedHat Advanced Server

Posted by David Rees <dr...@greenhydrant.com>.
Steve Summit wrote, On 8/1/2004 6:22 AM:
> I've got a big, complicated web application (too complicated to
> go into the details of here), and I'm having problems moving from
> Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
> (The move is for support reasons.)
 >
> I suspect that there's some pernicious incompatibility between
> this version of Tomcat, this version of j2sdk, and the C
> libraries in these releases of RedHat.  (When I built these
> machines, I think I had to manually install a C compatibility
> library to get Java to work at all.)
> 
> There was a message to this list a month or so ago from
> Harald Henkel describing some similar-sounding problems, but
> it doesn't look like he got an answer.  He mentioned setting
> LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
> sounded like that only slightly ameliorated, but didn't fix,
> his problem.

It's definitely some sort of JVM/OS issue, and not directly related to 
Tomcat.  What glibc version are you running, are you running all errata 
for the system (up2date)?  Also upgarde to the latest JDK, and finally, 
if it is still not stable, try a LD_ASSUME_KERNEL setting of 2.2.5.

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: horrible problems with TC4.1 under RedHat Advanced Server

Posted by "Ruth, Brice" <br...@fiskars.com>.
Well, first off, it appears your problem is related to your JDK, not so 
much Tomcat - I'm sure you've assumed as much. Have you tried grabbing 
other JDKs? You seem to be using Sun's JDK (which happens to be running 
smoothly on two RedHat ES 2.1 systems I have, no modifications were 
necessary to install, either). BEA has a free (right? I think so ..) JDK 
called JRockit, which also runs smoothly on RedHat ES 2.1 (one server 
here with that). Then, of course, you can grab IBM's JDKs - they have 
all sorts of different flavors, but I know that on one RedHat ES 2.1 box 
hosted externally with Rackspace, IBM's JDK was installed by default ... 
so I imagine there's some history there.

Give a few different JDKs a whirl and see if your problems go away!!

Good luck.

Steve Summit wrote:

>I've got a big, complicated web application (too complicated to
>go into the details of here), and I'm having problems moving from
>Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
>(The move is for support reasons.)
>
>Things were working basically okay under Red Hat 9.
>But under Advanced Server or Enterprise Server, I have these two
>problems:
>
>1. Some pretty high percentage of the time, Tomcat fails to
>   start.  After invoking "catalina.sh start", I get the errors
>
>	Another exception has been detected while we were handling last error.
>	Dumping information about last error:
>	ERROR REPORT FILE = (N/A)
>	PC                = 0x00000000
>	SIGNAL            = 11
>	FUNCTION NAME     = (N/A)
>	OFFSET            = 0xFFFFFFFF
>	LIBRARY NAME      = (N/A)
>
>   Simply retrying the command usually works, although sometimes
>   it takes three tries.
>
>2. Much more seriously, my web apps have been mysteriously hanging.
>   They don't tend to crash or burn or emit error messages, they
>   just... stop... responding.  In one case (that is, for one of
>   my applications) they seem to hang after acquiring and holding
>   certain database resources, which ends up meaning that other
>   applications running on other servers also accessing that
>   database also hang.
>
>   In some cases these hangs are accompanied by the messages
>
>	org.apache.tomcat.util.threads.ThreadPool logFull
>	SEVERE: All threads (75) are currently busy, waiting.
>	Increase maxThreads (75) or check the servlet status
>
>   I increased maxThreads (and maxProcessors, since the
>   documentation is inconsistent) to 200, but now I just get
>   "All threads (200) are currently busy, waiting".  Furthermore,
>   it's not clear whether this thread exhaustion is the primary
>   cause of my problems, or just one of the symptoms.
>
>I suspect that there's some pernicious incompatibility between
>this version of Tomcat, this version of j2sdk, and the C
>libraries in these releases of RedHat.  (When I built these
>machines, I think I had to manually install a C compatibility
>library to get Java to work at all.)
>
>There was a message to this list a month or so ago from
>Harald Henkel describing some similar-sounding problems, but
>it doesn't look like he got an answer.  He mentioned setting
>LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
>sounded like that only slightly ameliorated, but didn't fix,
>his problem.
>
>Anybody got any ideas?  Has this sort of thing happened before?
>(Web searches haven't really turned up anything.)
>Is there something I'm missing?
>
>Here are the exact details of what I'm running:
>
>	Jakarta Tomcat 4.1.30
>	j2sdk 1.4.2_04
>
>Working system:
>
>	Red Hat Linux release 9 (Shrike)
>	kernel 2.4.20-8smp
>
>Troublesome systems:
>
>	Red Hat Enterprise Linux ES release 3 (Taroon)
>	kernel 2.4.21-4.ELsmp
>
>	Red Hat Enterprise Linux AS release 3 (Taroon Update 1)
>	kernel 2.4.21-9.ELsmp
>
>Thanks in advance for any suggestions.
>
>					Steve Summit
>					scs@eskimo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>

-- 
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org