Re: Where does my stderr go?

2011-01-11 Thread Thomas Kloeber

Konstantin Kolinko wrote on 11.01.2011 08:55:

2011/1/11 Thomas Kloeberkloe...@ics.de:

Konstantin,

Konstantin Kolinko wrote on 11.01.2011 01:03:

https://issues.apache.org/bugzilla/show_bug.cgi?id=18462

thanks for sending this link. I'm surprised that this is such an old issue!
So, if I understand the discussion correctly, Tomcat redirects stderr into
stdout_XXX.log, right?

Strange though, that I couldn't find my stack trace when I ran
exception.printStackTrace().
Either this goes to yet another place, which I can't believe or I must have
completely missed in, which I can't quite believe either ;)

1. System.out is buffered. So it might get stuck in the buffer. (Just
saying. Have not tried to verify whether it is truth).
System.err.flush() should help.

good point. But in my case it should have come eventually :)

2. If you used swallowOutput=true in the context configuration file
(it is false by default), then it will be written to the log file of
the Host, i.e. into localhost_* log.

I checked that, swallowOutput is set to false..

I will do some more tests, it is still a mystery to me...

Thomas

--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread Amol Puglia
Hello Andre Warnier,

Thanks for the response. Is there anyway i can bring down this connections.

I would like to know why this process id's are not getting terminated 
automatically.

I have run the traceroute command and following is the output of the command.

Please let me know in case any further information is required.

traceroute erib2bdev.ericsson.net
traceroute to erib2bdev.ericsson.net (193.180.14.127), 30 hops max, 40 byte 
packets
 1  xnet-web-ecn-gw.sw.ericsson.se (153.88.240.1)  0.728 ms  0.611 ms  0.650 ms
 2  vip-seebeyond-2.ss.sw.ericsson.se (193.180.14.127)  0.925 ms  0.837 ms  
0.859 ms


--- On Mon, 1/10/11, André Warnier a...@ice-sa.com wrote:

From: André Warnier a...@ice-sa.com
Subject: Re: Apache Process going high even after restart of backend server 
tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Monday, January 10, 2011, 9:49 PM

Amol Puglia wrote:
 Hello Team,
 
 I am facing very weird problem of apache porcess going high upto 259 and 
 increasing again even after restart of backend server ie. tomcat.
 
 Apache version :- 2.0.59
 
 Tomcat Version :- 5.5.9
 
 Apache/Tomcat connectivity :- mod_jk
 
 when i have checked mod_jk.log file i am seeing this messages in the logs.
 
 [Mon Jan 10 08:14:52 2011] worker1 erib2bdev.ericsson.net 0.001122
 [Mon Jan 10 08:14:55 2011] worker1 erib2bdev.ericsson.net 0.000732
 [Mon Jan 10 08:14:57 2011] worker1 erib2bdev.ericsson.net 0.000740
 [Mon Jan 10 08:15:00 2011] worker1 erib2bdev.ericsson.net 0.000846
 [Mon Jan 10 08:15:02 2011] worker1 erib2bdev.ericsson.net 0.000952
 
 
 I am not sure what does it mean when the name erib2bdev.ericsson.net is not 
 refereed anywhere in my apache and tomcat configuration files and not even in 
 workers.properties file. Can anyone help me torubleshoot this issue?
 
What I can tell you, is that the above is a real system on the Internet.
I suggest trying :
nslookup erib2bdev.ericsson.net
traceroute erib2bdev.ericsson.net
Then try http://www.whois.net/whois/ericsson.net

and then try to figure out why an application on your Apache server has its own 
mod_jk configuration, and calls back to this Internet server every 2 seconds or 
so..
Such as, have you paid your phone bill ?
;-)



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

realm authentication no longer works through apache - mod_jk after upgrade still works via straight tomcat 8080

2011-01-11 Thread David Sperling
Hi-

I recently upgraded tomcat, apache, apr and mod_jk.
Now when I access via apache -- mod_jk on port 80 ie.
www.mydomain.com/myappname/
the Velocity login page displays fine but after hitting the login button
/admin/j_security_check displays in the URL
and a blank page is displayed.

.do and .vm pages on port 80 that do not require authentication display
fine.
When I bypass mod_jk by accessing via port 8080 users can authenticate,
with no problems and the applications function properly. 

I've pasted log and configuration information below.  Any tips on debugging,
greatly appreciated.

Cheers,

David Sperling



The /var/log/apache/error.log displays the following:
[Tue Jan 11 17:49:12 2011] [notice] child pid 30665 exit signal
Segmentation fault (11)
[Tue Jan 11 17:49:12 2011] [notice] child pid 30666 exit signal
Segmentation fault (11)
[Tue Jan 11 17:49:12 2011] [notice] child pid 30667 exit signal
Segmentation fault (11)

/var/log/tomcat-6/catalina.out displays:
Jan 11, 2011 6:00:28 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2

I tried mod_jk-1.2.28-r1 and 1.2.30 and they both give the same result.

I thought maybe it was an apache module conflict or problem caused
because of a lack
of a module so I removed all apache modules and re-compiled apache. 
Same symptoms
after restart.  Then I re-compiled apache with the default modules and
restarted apache with the same symptoms.

My apache build contains the following modules(minus means not included
in build):

www-servers/apache-2.2.16  USE=ssl -debug -doc -ldap (-selinux) -static
-suexec -threads APACHE2_MODULES=actions alias auth_basic authn_alias
authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio mem_cache mime
mime_magic negotiation rewrite setenvif speling status unique_id userdir
usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta
-charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy
-proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http
-substitute -version APACHE2_MPMS=-event -itk -peruser -prefork -worker


My current versions are listed below. 

www-servers/tomcat
  Latest version available: 6.0.26
  Latest version installed: 6.0.26

*  www-servers/apache
  Latest version available: 2.2.16
  Latest version installed: 2.2.16

*  dev-libs/apr
  Latest version available: 1.4.2
  Latest version installed: 1.4.2

*  www-apache/mod_jk
  Latest version available: 1.2.30
  Latest version installed: 1.2.30

cat /etc/apache2/jk-workers.properties | grep -v '#'

worker.list=ajp13w

worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

cat /etc/apache2/modules.d/88_mod_jk.conf | grep -v '#' | grep -v ^$
IfDefine JK
LoadModule jk_modulemodules/mod_jk.so
JkWorkersFile/etc/apache2/jk-workers.properties
JkLogFile/var/log/apache2/mod_jk.log
JkShmFile   /var/log/apache2/mod_jk.shm
JkLogLevelinfo
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
/IfDefine

cat /etc/apache2/vhosts.d/05_mybox.conf

Listen 80

NameVirtualHost *:80

VirtualHost *:80
ServerName mybox.mydomain.com

DocumentRoot /var/www/localhost/htdocs/

directory /var/www/localhost/htdocs
AllowOverride all
Order allow,deny
Allow from all
/directory
JkMount /manager/* ajp13w
...
JkMount /jfree/* ajp13w
JkMount /solana/* ajp13w
JkMount /topix/* ajp13w
JkMount /jsite/* ajp13w
JkMount /eswift/* ajp13w
JkMount /property/* ajp13w
/VirtualHost


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteIP valve and multiple X-Forwarded-For headers

2011-01-11 Thread Brett Delle Grazie
Hi,

On 10 December 2010 14:42, Jim Riggs apache-li...@riggs.me wrote:
 On Dec 10, 2010, at 7:59 AM, Mark Thomas wrote:

 Looks like a bug,

 Please add it to bugzilla, as Mark suggested.

 BTW, I think that the following change can fix it:
 (for current tc6.0.x, not tested!)

 I don't think so. I think the problem is further up on line 558:
 String[] remoteIpHeaderValue =
 commaDelimitedListToStringArray(request.getHeader(remoteIpHeader));

 I'm pretty sure that needs to be using request.getHeaders() but I
 haven't tested it either ;)

 It does indeed need to be using the Enumeration from request.getHeaders() 
 instead of the single value from getHeader().  I have started work on a 
 patch, unless someone beats me to it...


I've manually compiled 6.0.29 with the patch and applied it to our
test and then production systems (we couldn't wait for 6.0.30).
This works perfectly.

Thank you very much to all who helped.

-- 
Best Regards,

Brett Delle Grazie

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Need help in understanding tomcat thread dump

2011-01-11 Thread Amol Puglia
Hello Team,

I have taken thread dump for tomcat. I have analyzed it using Thread dump 
analyzer.

After reading thread dump i am unable to point which thread is exactly causing 
the issue.

kindly guide me to read thread dumps.

Following is the one of the thread from the thread dump output.

TP-Processor50 daemon prio=5 tid=0x00449ea8 nid=0x56 waiting on condition 
[9427e000..9427fc30]
    at java.lang.Thread.sleep(Native Method)
    at com.ericsson.eai.b2b.MUXServlet.doPost(MUXServlet.java:506)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
    at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)



  

Re: Need help in understanding tomcat thread dump

2011-01-11 Thread Ronald Klop
Op dinsdag, 11 januari 2011 12:11 schreef Amol Puglia amolcpug...@yahoo.com: 
 


Hello Team,

I have taken thread dump for tomcat. I have analyzed it using Thread dump 
analyzer.

After reading thread dump i am unable to point which thread is exactly causing 
the issue.

kindly guide me to read thread dumps.

Following is the one of the thread from the thread dump output.

TP-Processor50 daemon prio=5 tid=0x00449ea8 nid=0x56 waiting on condition 
[9427e000..9427fc30]
at java.lang.Thread.sleep(Native Method)
at com.ericsson.eai.b2b.MUXServlet.doPost(MUXServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)









What is the issue? (Was there another mail that I missed?)

Ronald.




Re: realm authentication no longer works through apache - mod_jk after upgrade still works via straight tomcat 8080

2011-01-11 Thread Rainer Jung

On 11.01.2011 10:40, David Sperling wrote:

Hi-

I recently upgraded tomcat, apache, apr and mod_jk.
Now when I access via apache --  mod_jk on port 80 ie.
www.mydomain.com/myappname/
the Velocity login page displays fine but after hitting the login button
/admin/j_security_check displays in the URL
and a blank page is displayed.


Add a browser plugin, e.g. FireBug for Firefox to check, what requests 
are actually being sent and which one is the last, that isn't being 
answered. Check whether it is sent to the correct host.


But see also below.


.do and .vm pages on port 80 that do not require authentication display
fine.
When I bypass mod_jk by accessing via port 8080 users can authenticate,
with no problems and the applications function properly.

I've pasted log and configuration information below.  Any tips on debugging,
greatly appreciated.

The /var/log/apache/error.log displays the following:
[Tue Jan 11 17:49:12 2011] [notice] child pid 30665 exit signal
Segmentation fault (11)
[Tue Jan 11 17:49:12 2011] [notice] child pid 30666 exit signal
Segmentation fault (11)
[Tue Jan 11 17:49:12 2011] [notice] child pid 30667 exit signal
Segmentation fault (11)


Very bad. I assume the timestamps fit the moments when the problem 
actually happens, so those crashes should be related? Or is it 
timestamps e.g. from doing Apache restarts?


If the dumps are related:

- get core dumps for the crashes Apache instances. You might need to 
allow core dumps in you operating system, details depend on your 
operating system. Sometimes it helps to configure CoreDumpDirectory in 
Apache in addition to the OS settings.


- try to get stack dumps from the cores using gdb or whatever tool is 
appropriate on your platform (which is which platform?) and post them


At the moment there are no open issues about mod_jk and crashes.


/var/log/tomcat-6/catalina.out displays:
Jan 11, 2011 6:00:28 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2

I tried mod_jk-1.2.28-r1 and 1.2.30 and they both give the same result.


Wonder why you tried 1.2.30 but not the most recent version 1.2.31?


I thought maybe it was an apache module conflict or problem caused
because of a lack
of a module so I removed all apache modules and re-compiled apache.
Same symptoms
after restart.  Then I re-compiled apache with the default modules and
restarted apache with the same symptoms.

My apache build contains the following modules(minus means not included
in build):


What do you mean by build contains and minus means not included in 
build? Example: -substitute means what? You don't build it and you 
don't use it, or you build it and don't use/load it or you didn't build 
it and use a 3rd-party build?



www-servers/apache-2.2.16  USE=ssl -debug -doc -ldap (-selinux) -static
-suexec -threads APACHE2_MODULES=actions alias auth_basic authn_alias
authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio mem_cache mime
mime_magic negotiation rewrite setenvif speling status unique_id userdir
usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta
-charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy
-proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http
-substitute -version APACHE2_MPMS=-event -itk -peruser -prefork -worker


Which MPM are you actually using?


My current versions are listed below.

www-servers/tomcat
   Latest version available: 6.0.26
   Latest version installed: 6.0.26

*  www-servers/apache
   Latest version available: 2.2.16
   Latest version installed: 2.2.16

*  dev-libs/apr
   Latest version available: 1.4.2
   Latest version installed: 1.4.2

*  www-apache/mod_jk
   Latest version available: 1.2.30
   Latest version installed: 1.2.30

cat /etc/apache2/jk-workers.properties | grep -v '#'

worker.list=ajp13w

worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009


Minimal but that makes it extremely unlikely to be responsible for the 
crash.



cat /etc/apache2/modules.d/88_mod_jk.conf | grep -v '#' | grep -v ^$
IfDefine JK
LoadModule jk_modulemodules/mod_jk.so
JkWorkersFile/etc/apache2/jk-workers.properties
JkLogFile/var/log/apache2/mod_jk.log
JkShmFile   /var/log/apache2/mod_jk.shm
JkLogLevelinfo



JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories


Remove +ForwardURICompat which often does more harm than good. But not 
related to crashes.



JkRequestLogFormat %w %V %T


Mmmm, I don't like it see ways of including the info into the normal 
access log. Look for mod_log_config on


http://tomcat.apache.org/connectors-doc/reference/apache.html

Again: not responsible for crash.


/IfDefine

cat /etc/apache2/vhosts.d/05_mybox.conf

Listen 80

NameVirtualHost *:80


Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread André Warnier

Amol Puglia wrote:

Hello Andre Warnier,

Thanks for the response. Is there anyway i can bring down this connections.

I would like to know why this process id's are not getting terminated 
automatically.

I have run the traceroute command and following is the output of the command.


Hi.

After your other post, entitled Need help in understanding tomcat thread dump, it is a 
bit confusing now what your real problem is.


That other post shows that you are runnig some java modules on your tomcat server, which 
seem to have something to do with the same supplier (Ericsson ?) than the one some Apache 
processes are connecting to using mod_jk.


We have no idea here of your applications, what they are doing, if it is normal or not 
that they connect to an Internet server of the Ericsson company, and so on.


Let's restart from the beginning, your original post :

I am facing very weird problem of apache porcess going high upto 259 and increasing 
again even after restart of backend server ie. tomcat.


So, is it the Apache httpd processes (children) that go very high (meaning that there 
are many, too many ?), or the back-end Tomcat threads ?


What is the problem ? is it in Apache httpd, or in Tomcat ? does your server stop 
responding ? is it slow ? does it not do what it is supposed to do ?



Apache version :- 2.0.59
Tomcat Version :- 5.5.9
Apache/Tomcat connectivity :- mod_jk

Both of the Apache httpd and Tomcat versions that you mention above are very old (many 
years).  You should upgrade to more recent versions.

You do not indicate a version for mod_jk, but it is probably old also.

when i have checked mod_jk.log file i am seeing this messages in the logs.

[Mon Jan 10 08:14:52 2011] worker1 erib2bdev.ericsson.net 0.001122
[Mon Jan 10 08:14:55 2011] worker1 erib2bdev.ericsson.net 0.000732
[Mon Jan 10 08:14:57 2011] worker1 erib2bdev.ericsson.net 0.000740
[Mon Jan 10 08:15:00 2011] worker1 erib2bdev.ericsson.net 0.000846
[Mon Jan 10 08:15:02 2011] worker1 erib2bdev.ericsson.net 0.000952

These messages look to me as if, in your Apache httpd server, there are processes which 
communicate directly, through mod_jk, with a (real) external Internet server 
erib2bdev.ericsson.net (probably a Tomcat server also).


That's all I can say.  I do not know if that is your problem, or if these connections are 
a normal part of your application, or anything else.

Only you can know that.

Try to be a bit more specific about what the real problem is, and maybe we can start 
helping you.


Come on, give us a clue.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Need help in understanding tomcat thread dump

2011-01-11 Thread André Warnier

Ronald Klop wrote:
...





What is the issue? (Was there another mail that I missed?)

Maybe. There is another thread from the same OP, entitled Apache Process going high even 
after restart of backend server tomcat, but I am still trying to figure out what the 
relationship is, and what is the problem.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread Amol Puglia
Hello Andre Warnier,

Thanks for the response. My main problem is apache process is increasing very 
fast and reaching to count 259 thereby bringing donw application.

For that i took thread dump also and tried to analyze but unable to find out 
what is causing the issue.

I have also posted some part of thread dump in another post.

I would liek to know why apache process is going so high in just 15 minuted and 
not coming down.

I would need all experts help to resolve this issue.
--- On Tue, 1/11/11, André Warnier a...@ice-sa.com wrote:

From: André Warnier a...@ice-sa.com
Subject: Re: Apache Process going high even after restart of backend server 
tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 11, 2011, 5:28 PM

Amol Puglia wrote:
 Hello Andre Warnier,
 
 Thanks for the response. Is there anyway i can bring down this connections.
 
 I would like to know why this process id's are not getting terminated 
 automatically.
 
 I have run the traceroute command and following is the output of the command.
 
Hi.

After your other post, entitled Need help in understanding tomcat thread 
dump, it is a bit confusing now what your real problem is.

That other post shows that you are runnig some java modules on your tomcat 
server, which seem to have something to do with the same supplier (Ericsson ?) 
than the one some Apache processes are connecting to using mod_jk.

We have no idea here of your applications, what they are doing, if it is normal 
or not that they connect to an Internet server of the Ericsson company, and so 
on.

Let's restart from the beginning, your original post :

I am facing very weird problem of apache porcess going high upto 259 and 
increasing again even after restart of backend server ie. tomcat.

So, is it the Apache httpd processes (children) that go very high (meaning 
that there are many, too many ?), or the back-end Tomcat threads ?

What is the problem ? is it in Apache httpd, or in Tomcat ? does your server 
stop responding ? is it slow ? does it not do what it is supposed to do ?


Apache version :- 2.0.59
Tomcat Version :- 5.5.9
Apache/Tomcat connectivity :- mod_jk

Both of the Apache httpd and Tomcat versions that you mention above are very 
old (many years).  You should upgrade to more recent versions.
You do not indicate a version for mod_jk, but it is probably old also.

when i have checked mod_jk.log file i am seeing this messages in the logs.

[Mon Jan 10 08:14:52 2011] worker1 erib2bdev.ericsson.net 0.001122
[Mon Jan 10 08:14:55 2011] worker1 erib2bdev.ericsson.net 0.000732
[Mon Jan 10 08:14:57 2011] worker1 erib2bdev.ericsson.net 0.000740
[Mon Jan 10 08:15:00 2011] worker1 erib2bdev.ericsson.net 0.000846
[Mon Jan 10 08:15:02 2011] worker1 erib2bdev.ericsson.net 0.000952

These messages look to me as if, in your Apache httpd server, there are 
processes which communicate directly, through mod_jk, with a (real) external 
Internet server erib2bdev.ericsson.net (probably a Tomcat server also).

That's all I can say.  I do not know if that is your problem, or if these 
connections are a normal part of your application, or anything else.
Only you can know that.

Try to be a bit more specific about what the real problem is, and maybe we can 
start helping you.

Come on, give us a clue.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Re: Need help in understanding tomcat thread dump

2011-01-11 Thread Amol Puglia
Hello Ronald,

The major issue is apache process is goinfg very high and not coming down.

I would like to know what is causing for apache process to go high.

Is it porblem in a backend tomcat server or it has to do something with apache 
itself.?

I am using apache version :- 2.0.59

tomcat version :- 5.5.9

and connecting module as mod_jk.


--- On Tue, 1/11/11, André Warnier a...@ice-sa.com wrote:

From: André Warnier a...@ice-sa.com
Subject: Re: Need help in understanding tomcat thread dump
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 11, 2011, 5:31 PM

Ronald Klop wrote:
...

 
 
 What is the issue? (Was there another mail that I missed?)
 
Maybe. There is another thread from the same OP, entitled Apache Process going 
high even after restart of backend server tomcat, but I am still trying to 
figure out what the relationship is, and what is the problem.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Re: Need help in understanding tomcat thread dump

2011-01-11 Thread Leon Rosenberg
Hello,

On Tue, Jan 11, 2011 at 1:11 PM, Amol Puglia amolcpug...@yahoo.com wrote:
 Hello Ronald,

 The major issue is apache process is goinfg very high and not coming down.

what exactly is going very high?

Do you mean that the number of apache processes increases? If so could
it be, that your (or whosever) MUXServlet is sleeping (SLEEPING?!) in
its post method.
As a result the apache worker process is bound to the sleeping tomcat
processor (aka thread), andI assume that each following request to the
same servlet will produce one more
sleeping processor and one more sleeping worker, until there are no
more workers or processors left, whatever comes first.
But to answer it definitely, one would need to see the code of the
MuxServlet (or the complete thread dump).

regards
Leon

P.S. Side note, I can barely imagine any reasonable grounds for a
servlet to call Thread.sleep in a doPost/doGet method.


 I would like to know what is causing for apache process to go high.

 Is it porblem in a backend tomcat server or it has to do something with 
 apache itself.?

 I am using apache version :- 2.0.59

 tomcat version :- 5.5.9

 and connecting module as mod_jk.


 --- On Tue, 1/11/11, André Warnier a...@ice-sa.com wrote:

 From: André Warnier a...@ice-sa.com
 Subject: Re: Need help in understanding tomcat thread dump
 To: Tomcat Users List users@tomcat.apache.org
 Date: Tuesday, January 11, 2011, 5:31 PM

 Ronald Klop wrote:
 ...



 What is the issue? (Was there another mail that I missed?)

 Maybe. There is another thread from the same OP, entitled Apache Process 
 going high even after restart of backend server tomcat, but I am still 
 trying to figure out what the relationship is, and what is the problem.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Need help in understanding tomcat thread dump

2011-01-11 Thread André Warnier

All,

may I suggest that we drop this thread, and concentrate on the other one Apache Process 
going high even after restart of backend server tomcat.
They are apparently related to the same issue, and it is confusing to follow 2 separate 
threads.





Leon Rosenberg wrote:

Hello,

On Tue, Jan 11, 2011 at 1:11 PM, Amol Puglia amolcpug...@yahoo.com wrote:

Hello Ronald,

The major issue is apache process is goinfg very high and not coming down.


what exactly is going very high?

Do you mean that the number of apache processes increases? If so could
it be, that your (or whosever) MUXServlet is sleeping (SLEEPING?!) in
its post method.
As a result the apache worker process is bound to the sleeping tomcat
processor (aka thread), andI assume that each following request to the
same servlet will produce one more
sleeping processor and one more sleeping worker, until there are no
more workers or processors left, whatever comes first.
But to answer it definitely, one would need to see the code of the
MuxServlet (or the complete thread dump).

regards
Leon

P.S. Side note, I can barely imagine any reasonable grounds for a
servlet to call Thread.sleep in a doPost/doGet method.


I would like to know what is causing for apache process to go high.

Is it porblem in a backend tomcat server or it has to do something with apache 
itself.?

I am using apache version :- 2.0.59

tomcat version :- 5.5.9

and connecting module as mod_jk.


--- On Tue, 1/11/11, André Warnier a...@ice-sa.com wrote:

From: André Warnier a...@ice-sa.com
Subject: Re: Need help in understanding tomcat thread dump
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 11, 2011, 5:31 PM

Ronald Klop wrote:
...


What is the issue? (Was there another mail that I missed?)


Maybe. There is another thread from the same OP, entitled Apache Process going high 
even after restart of backend server tomcat, but I am still trying to figure out 
what the relationship is, and what is the problem.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread André Warnier

Amol Puglia wrote:

Hello Andre Warnier,

Thanks for the response. My main problem is apache process is increasing very 
fast and reaching to count 259 thereby bringing donw application.

For that i took thread dump also and tried to analyze but unable to find out 
what is causing the issue.

I have also posted some part of thread dump in another post.

I would liek to know why apache process is going so high in just 15 minuted and 
not coming down.


Amol,
in this context the name Apache is confusing.
There are 2 different packages, or servers : Apache httpd (a webserver, which can 
function as a front-end, using the mod_jk add-on module), and Apache Tomcat, which is a 
Java servlet engine (and also, confusingly, a webserver).

Both can have threads.

So what we would like to know first, is : which server are you talking about when you say 
apache process is increasing very fast and reaching to count 259 ?


What is reaching count 259 and how do you see that ?




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread Amol Puglia
Hello Andre Warnier,

Thanks for the response. I am talking about apache web server whose process 
count is increasiing to 259 and not coming down. I would like to know why 
process count is increasing and not coming down. Please help me to toublleshoot 
this issue.Let em know in case you need further information.

--- On Tue, 1/11/11, André Warnier a...@ice-sa.com wrote:

From: André Warnier a...@ice-sa.com
Subject: Re: Apache Process going high even after restart of backend server 
tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 11, 2011, 6:21 PM

Amol Puglia wrote:
 Hello Andre Warnier,
 
 Thanks for the response. My main problem is apache process is increasing very 
 fast and reaching to count 259 thereby bringing donw application.
 
 For that i took thread dump also and tried to analyze but unable to find out 
 what is causing the issue.
 
 I have also posted some part of thread dump in another post.
 
 I would liek to know why apache process is going so high in just 15 minuted 
 and not coming down.
 
Amol,
in this context the name Apache is confusing.
There are 2 different packages, or servers : Apache httpd (a webserver, 
which can function as a front-end, using the mod_jk add-on module), and Apache 
Tomcat, which is a Java servlet engine (and also, confusingly, a webserver).
Both can have threads.

So what we would like to know first, is : which server are you talking about 
when you say apache process is increasing very fast and reaching to count 259 
?

What is reaching count 259 and how do you see that ?




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread Mark Thomas
On 11/01/2011 13:06, Amol Puglia wrote:
 Hello Andre Warnier,
 
 Thanks for the response. I am talking about apache web server whose process 
 count is increasiing to 259 and not coming down. I would like to know why 
 process count is increasing and not coming down. Please help me to 
 toublleshoot this issue.Let em know in case you need further information.

Then you are on the wrong list. You should be using the httpd users
mailing list.

Mark

 
 --- On Tue, 1/11/11, André Warnier a...@ice-sa.com wrote:
 
 From: André Warnier a...@ice-sa.com
 Subject: Re: Apache Process going high even after restart of backend server 
 tomcat
 To: Tomcat Users List users@tomcat.apache.org
 Date: Tuesday, January 11, 2011, 6:21 PM
 
 Amol Puglia wrote:
 Hello Andre Warnier,

 Thanks for the response. My main problem is apache process is increasing 
 very fast and reaching to count 259 thereby bringing donw application.

 For that i took thread dump also and tried to analyze but unable to find out 
 what is causing the issue.

 I have also posted some part of thread dump in another post.

 I would liek to know why apache process is going so high in just 15 minuted 
 and not coming down.

 Amol,
 in this context the name Apache is confusing.
 There are 2 different packages, or servers : Apache httpd (a webserver, 
 which can function as a front-end, using the mod_jk add-on module), and 
 Apache Tomcat, which is a Java servlet engine (and also, confusingly, a 
 webserver).
 Both can have threads.
 
 So what we would like to know first, is : which server are you talking about 
 when you say apache process is increasing very fast and reaching to count 
 259 ?
 
 What is reaching count 259 and how do you see that ?
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
   


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread André Warnier

Amol Puglia wrote:

Hello Andre Warnier,

Thanks for the response. I am talking about apache web server whose process 
count is increasiing to 259 and not coming down. I would like to know why 
process count is increasing and not coming down. Please help me to toublleshoot 
this issue.Let em know in case you need further information.



I am extremely tempted to answer that if the problem is at the Apache httpd server level, 
then it is not our problem on this list.  We deal only with Tomcat.


But someone else already answered that apparently.
So I'll make another effort.

To answer your question : we don't know.  There can be a million reasons.
Some of these reasons can have to do with the back-end Tomcat, but that is only a 
possibility. It may have nothing to do with Tomcat at all.


One possibility is that there are just many user requests coming in to your Apache httpd 
server, and it is not fast enough to handle the load.
So, in order to stay on this list, what makes you think that the problem has anything to 
do with the back-end Tomcat ?




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread Ronald Klop

In 'the other thread' there is still the question open of why there is 
Thread.sleep() in the MuxServlet. Can be a reason for a lot of open connections 
in the httpd server.

But until there is more information about the problem I don't have anything to 
add to this discussion anymore.

Ronald.


Op dinsdag, 11 januari 2011 14:23 schreef André Warnier a...@ice-sa.com:


 
Amol Puglia wrote:

 Hello Andre Warnier,
 
 Thanks for the response. I am talking about apache web server whose process count is increasiing to 259 and not coming down. I would like to know why process count is increasing and not coming down. Please help me to toublleshoot this issue.Let em know in case you need further information.
 


I am extremely tempted to answer that if the problem is at the Apache httpd 
server level, then it is not our problem on this list.  We deal only with 
Tomcat.

But someone else already answered that apparently.
So I'll make another effort.

To answer your question : we don't know.  There can be a million reasons.
Some of these reasons can have to do with the back-end Tomcat, but that is only 
a possibility. It may have nothing to do with Tomcat at all.

One possibility is that there are just many user requests coming in to your 
Apache httpd server, and it is not fast enough to handle the load.
So, in order to stay on this list, what makes you think that the problem has 
anything to do with the back-end Tomcat ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org









Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread Amol Puglia
Hello Andre,

When i posted same message to apache users list they said the apache process is 
going high because there is a problem in backend server tomcat and asked me to 
collect thread dump and post same in tomcat users list. so i posetd thread dump 
sanpshot in tomcat users list. It seems tomcat is not releasing connection and 
this is the reason apache proces count is goind high. I would like to know why 
tomcat is not releasing connection and wanted to figure out whether ther is 
problem in tomcat or application deployed on tomcat. I have taken therad dump 
and trying to analyze it but unable to understand what is causing problem by 
lloking at threads. Let em know if i can attache thread dump here so that 
experts from the forums can help me to understand thread dump.
 

--- On Tue, 1/11/11, André Warnier a...@ice-sa.com wrote:

From: André Warnier a...@ice-sa.com
Subject: Re: Apache Process going high even after restart of backend server 
tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 11, 2011, 6:53 PM

Amol Puglia wrote:
 Hello Andre Warnier,
 
 Thanks for the response. I am talking about apache web server whose process 
 count is increasiing to 259 and not coming down. I would like to know why 
 process count is increasing and not coming down. Please help me to 
 toublleshoot this issue.Let em know in case you need further information.
 

I am extremely tempted to answer that if the problem is at the Apache httpd 
server level, then it is not our problem on this list.  We deal only with 
Tomcat.

But someone else already answered that apparently.
So I'll make another effort.

To answer your question : we don't know.  There can be a million reasons.
Some of these reasons can have to do with the back-end Tomcat, but that is only 
a possibility. It may have nothing to do with Tomcat at all.

One possibility is that there are just many user requests coming in to your 
Apache httpd server, and it is not fast enough to handle the load.
So, in order to stay on this list, what makes you think that the problem has 
anything to do with the back-end Tomcat ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread André Warnier

Amol Puglia wrote:

Hello Andre,

When i posted same message to apache users list they said the apache process is 
going high because there is a problem in backend server tomcat and asked me to 
collect thread dump and post same in tomcat users list. so i posetd thread dump 
sanpshot in tomcat users list. It seems tomcat is not releasing connection and 
this is the reason apache proces count is goind high. I would like to know why 
tomcat is not releasing connection and wanted to figure out whether ther is 
problem in tomcat or application deployed on tomcat. I have taken therad dump 
and trying to analyze it but unable to understand what is causing problem by 
lloking at threads. Let em know if i can attache thread dump here so that 
experts from the forums can help me to understand thread dump.
 

Allright, so now we may start getting an idea of the problem.

Maybe the first things to do :

1) do not post files as attachments in this list. Mostly, the server strips 
them.
Instead, if we ask you for some text information, do a copy-and-paste, and paste the 
content directly in your email to the list.
Also, when you copy contents of files here, please remove the comments, and any private 
information such as internet hostnames or passwords.


2) tell us what the platform is (O.S.)
3) if you can, also tell what exact version of the mod_jk moduile you are using. You 
should be able to find this in the message that Apache httpd prints in its error log when 
it starts.
3) in the configuration of Apache httpd, there must be configuration lines starting with 
Jk...  Copy them here.

4) copy here the full content of the workers.properties file (comments 
removed)
5) in the Tomcat conf/server.xml file, there is a Connector element with a 
protocol=AJP.
Copy this Connector element here.
6) if the platform is Unix/Linux, execute the following command and copy the 
result here :
apache2ctl -V
7) if the platform is Unix/Linux, go to the bin directory of Tomcat, execute the command 
version.sh and copy the result here.


With the above, we will get a much better idea of your configuration, and of 
what to ask next.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Q? is it possible to patch an existing Tomcat server install in order to advance it 'in place' to a higher version?

2011-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kevin,

On 1/10/2011 5:21 PM, Kevin Murray wrote:
 I currently have a functioning Tomcat 5.5.25 server installed on 64-bit
 Linux and my goal is to advance to version Tomcat version 5.5.31
 Is the a method akin to applying a patch to my existing Tomcat 5.5.25
 install which will advance it to version 5.5.31 ?

You could probably just unzip a new binary package on top of your old
one: anything new would be updated, but you might also inadvertently
overwrite customizations you've made to configuration files, etc.

It's best to take Pid's advice and do a side-by-side. The advantage of
that is being able to roll-back with very little effort.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0shzkACgkQ9CaO5/Lv0PDghwCfYfsvpDpWYGoC8v+KZ1Li57Tp
cYQAn3JfBbUcmyOzmbhU7pRa35XyyM5t
=5HBC
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Q? is it possible to patch an existing Tomcat server install in order to advance it 'in place' to a higher version?

2011-01-11 Thread Mark Thomas
On 11/01/2011 16:37, Christopher Schultz wrote:
 Kevin,
 
 On 1/10/2011 5:21 PM, Kevin Murray wrote:
 I currently have a functioning Tomcat 5.5.25 server installed on 64-bit
 Linux and my goal is to advance to version Tomcat version 5.5.31
 Is the a method akin to applying a patch to my existing Tomcat 5.5.25
 install which will advance it to version 5.5.31 ?
 
 You could probably just unzip a new binary package on top of your old
 one: anything new would be updated, but you might also inadvertently
 overwrite customizations you've made to configuration files, etc.
 
 It's best to take Pid's advice and do a side-by-side. The advantage of
 that is being able to roll-back with very little effort.

Look into using CATALINA_HOME/CATALINA_BASE. With that configured, it
took me  5 mins to upgrade the ASF test Jira instance from 6.0.29 to
7.0.6 and most of that was waiting for Jira to start (twice because I
forgot to clear out the work directory the first time).

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: realm authentication no longer works through apache - mod_jk after upgrade still works via straight tomcat 8080

2011-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rainer,

On 1/11/2011 6:56 AM, Rainer Jung wrote:
 At the moment there are no open issues about mod_jk and crashes.

...

 I tried mod_jk-1.2.28-r1 and 1.2.30 and they both give the same result.
 
 Wonder why you tried 1.2.30 but not the most recent version 1.2.31?

1.2.31 might not be available from their package manager (Gentoo emerge,
looks like).

 My apache build contains the following modules(minus means not included
 in build):
 
 What do you mean by build contains and minus means not included in
 build? Example: -substitute means what? You don't build it and you
 don't use it, or you build it and don't use/load it or you didn't build
 it and use a 3rd-party build?

Gentoo USE flags mean optional capabilities. In the USE config below,
-substitute means that that USE flag is disabled, and therefore some
corresponding capabilities are not compiled into the binary.

(Gentoo is (usually) source-only, and all packages are compiled on the
local machine, so you gave a great deal of control over the caps for
each package).

http://www.gentoo.org/proj/en/apache/doc/upgrading.xml#use-2.2.6-r4

APACHE2_MODULES are like USE flags, except that they don't pollute the
global registry of USE flags that Gentoo uses.

I didn't see substitute anywhere, so that may just be a mistake.

 www-servers/apache-2.2.16  USE=ssl -debug -doc -ldap (-selinux) -static
 -suexec -threads APACHE2_MODULES=actions alias auth_basic authn_alias
 authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
 authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
 cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
 file_cache filter headers include info log_config logio mem_cache mime
 mime_magic negotiation rewrite setenvif speling status unique_id userdir
 usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta
 -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy
 -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http
 -substitute -version APACHE2_MPMS=-event -itk -peruser -prefork
 -worker

Not sure if any of the above could cause a problem: I can't see anything
off the top of my head. Certainly, core dumps will help.

 Which MPM are you actually using?

The APACHE2_MPMS setting indicates that all MPMs listed on the page
above are disabled. Maybe there isn't an MPM at all? That would be
interesting.

David: how about enabling one of the MPMS, re-building, and trying
again? I recommend prefork or worker.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0sis0ACgkQ9CaO5/Lv0PCRAgCgqz+vIp4LZGvgS0pUozH729m4
caIAnipJa57cDYnW3BCTbyK9gm7aUf86
=l4vg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Need help in understanding tomcat thread dump

2011-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Amol,

On 1/11/2011 7:11 AM, Amol Puglia wrote:
 The major issue is [Apache httpd] process is going very high and not
 coming down.

If you mean that the CPU is experiencing high load, then the thread
below is unlikely to be the cause:

 TP-Processor50 daemon prio=5 tid=0x00449ea8 nid=0x56 waiting on condition 
 [9427e000..9427fc30]
 at java.lang.Thread.sleep(Native Method)
 at com.ericsson.eai.b2b.MUXServlet.doPost(MUXServlet.java:506)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Why? Because Thread.sleep doesn't use CPU time: it blocks waiting for a
signal from the CPU saying that it's time to wake up. It's still
possible this is the problem, if the Thread.sleep() call is in a loop
without much of a sleep, like this:

while(true) {
  Thread.sleep(1);
}

That would peg your CPU.

Why not look at the code in com.ericsson.eai.b2b.MUXServlet.java at line
506 and see what's going on?

 Is it porblem in a backend tomcat server or it has to do something
 with apache itself.?

That depends on what the problem is :)

 tomcat version :- 5.5.9

You need to upgrade, but that's not causing your CPU load.

You need to use a tool such as top to find out which process is using
all your CPU: once you determine if it's Tomcat (process will be java)
or Apache httpd (process will be apache2 or httpd depending on your
system).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0si+kACgkQ9CaO5/Lv0PDCCACfV8kKhliVXvFqVqlf9pim5eyt
AT8An3TLL42Bi+Skh9jU62Vf377w2Iwf
=g8xx
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Q? is it possible to patch an existing Tomcat server install in order to advance it 'in place' to a higher version?

2011-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 1/11/2011 11:41 AM, Mark Thomas wrote:
 On 11/01/2011 16:37, Christopher Schultz wrote:
 Kevin,

 On 1/10/2011 5:21 PM, Kevin Murray wrote:
 I currently have a functioning Tomcat 5.5.25 server installed on 64-bit
 Linux and my goal is to advance to version Tomcat version 5.5.31
 Is the a method akin to applying a patch to my existing Tomcat 5.5.25
 install which will advance it to version 5.5.31 ?

 You could probably just unzip a new binary package on top of your old
 one: anything new would be updated, but you might also inadvertently
 overwrite customizations you've made to configuration files, etc.

 It's best to take Pid's advice and do a side-by-side. The advantage of
 that is being able to roll-back with very little effort.
 
 Look into using CATALINA_HOME/CATALINA_BASE. With that configured, it
 took me  5 mins to upgrade the ASF test Jira instance from 6.0.29 to
 7.0.6 and most of that was waiting for Jira to start (twice because I
 forgot to clear out the work directory the first time).

+1000

*Everyone* should use CATALINA_BASE, even if they aren't running
multiple instances, for just this one excellent example.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0sjnsACgkQ9CaO5/Lv0PCezQCgiAwe8QKoarmwL3uGnHvvJIJh
PKwAmwTjSQdokMEUf3eT78AE9JpxGBEW
=9O+/
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: FIPS mode OpenSSL under Tomcat 6.0

2011-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

On 1/7/2011 4:24 PM, Chris Beckey wrote:
 I need to run a FIPS 140-2 certified SSL/TLS implementation under
 Tomcat 6.0.20.  I have OpenSSL configured and running but I cannot
 find a way to set FIPS mode in OpenSSL.

I don't think there's any way to configure OpenSSL via Tomcat other than
to specify the ciphers that OpenSSL will use for SSL.

 From the OpenSSL
 documentation it should be as simple as making a call to
 FIPS_mode_set(), probably from within the AprLifecycleListener but I
 can't find a configuration option nor any indication that
 FIPS_mode_set() method is visible in the tcnative library or JNI
 wrapper.

I can't find the string fips (case-insensitive) anywhere in the
tomcat-native code, so it must not be exposed.

 Question is, has anyone run OpenSSL under Tomcat in FIPS
 mode? Any help would be appreciated.

If you know the ciphers allowed by FIPS, you can just specify them in
your Connector configuration. Is that acceptable, or do you absolutely
need to have FIPS mode set? (I understand these things are sometimes
non-negotiable).

It doesn't look like it would be a big deal to add some code to allow
FIPS mode via the APR connector with OpenSSL. Would you be willing to
test some of that code?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0skOUACgkQ9CaO5/Lv0PDhHACfXKvxsXyow99+flTQbLyXO0Du
yS0AoJYy+kEzl1bylVNff7IyO52zjesa
=9VrF
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread Rainer Jung

On 10.01.2011 17:00, Amol Puglia wrote:

Hello Team,

I am facing very weird problem of apache porcess going high upto 259 and 
increasing again even after restart of backend server ie. tomcat.

Apache version :- 2.0.59

Tomcat Version :- 5.5.9

Apache/Tomcat connectivity :- mod_jk

when i have checked mod_jk.log file i am seeing this messages in the logs.

[Mon Jan 10 08:14:52 2011] worker1 erib2bdev.ericsson.net 0.001122
[Mon Jan 10 08:14:55 2011] worker1 erib2bdev.ericsson.net 0.000732
[Mon Jan 10 08:14:57 2011] worker1 erib2bdev.ericsson.net 0.000740
[Mon Jan 10 08:15:00 2011] worker1 erib2bdev.ericsson.net 0.000846
[Mon Jan 10 08:15:02 2011] worker1 erib2bdev.ericsson.net 0.000952


As I already wrote on the httpd users list:

The lines come from the JkRequestLogFormat configuration setting that 
you must have added somewhere (default: no such setting, no lines). The 
configured format will tell you, what the entry means. Likely it is 
either the name of the virtual host, or the value of the host header the 
client sent. Cleartext: this is requests being processed by your Apache 
server. The client sends these requests to erib2bdev.ericsson.net and 
they are received by your server. Or you configured your server to carry 
the name erib2bdev.ericsson.net.


For details see:

http://tomcat.apache.org/connectors-doc/reference/apache.html

and look for JkRequestLogFormat in that page.

The use of that directive is no longer recommended, because it is easier 
to include request log information into the usual access log via 
mod_log_config. Look for mod_log_config in the same page.



I am not sure what does it mean when the name erib2bdev.ericsson.net is not 
refereed anywhere in my apache and tomcat configuration files and not even in 
workers.properties file. Can anyone help me torubleshoot this issue?


Furthermore this might not have to do with your issue, namely that you 
think the number of Apache processes is to big. From the other thread 
you posted containing the Java thread Dump excerpt we think that the 
reason for the growing number of processes is, that your MUXServlet 
doesn't handle the request and instead enters sleep. To make this 
assumption a fact, you would need to tell us, whether there are many 
threads in the same dump, that have the same stack (sleep in 
MUXServlet), more precisely how many and what the names of the threads 
are. If you find let's say 200 of those, then you are close to an 
explanation.


Finally you have to do more than one dump to understand, whether the 
sleep() was only lasting for a short time, or it is happening all the 
time. Then you have to start talking to the developers of the MUXServlet 
showing them those dumps.


Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: FIPS mode OpenSSL under Tomcat 6.0

2011-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

On 1/7/2011 4:24 PM, Chris Beckey wrote:
 I did find documentation on running JSSE in FIPS mode, but not
 OpenSSL.

Please post a reference to the JSSE setup here:

https://issues.apache.org/bugzilla/show_bug.cgi?id=50570

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0slFEACgkQ9CaO5/Lv0PD4kQCfUz/uQC+02vM9mxz8VEK04MON
5NIAoJaL8M8xUSZD8TdnI7Xkx+J1VSGv
=I0LX
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Possible race condition with mod_jk + multiple workers in recovery mode

2011-01-11 Thread Andy Wang
I'm still digging, but I thought I'd send this along to the mailing list
while I try to decipher the mod_jk code.

We're using tomcat-connector 1.2.31 on apache 2.2.17 on a Linux system.

Log file is at this URL:
http://www.moonteeth.com/~dopey/tomcat/mod_jk.log
http://www.moonteeth.com/%7Edopey/tomcat/mod_jk.log

The worker configuration consists of a load balanced worker with 9
workers (tomcat1-9).  At any given time, usually only one tomcat is in
use.  In the case of the log, all the workers are in recovery state
(apache started before tomcat, and someone hit the page so the tomcats
are all down).

In the log file the requests
5356:1146444096
/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login
and
5357:1138932032 /Windchill/servlet/WindchillGW/wt.httpgw.HTTPServer/ping
come in almost simultaneously.   5357:1138932032 completes first and
picks up tomcat1, recovers it and uses it.

However 5356:1146444096 never tries worker 1.  5357:1138932032 grabbed
worker 1 before 5356:1146444096 does, and by the time  5356:1146444096
gets the worker list, it never bothers to try tomcat1, just tries all
the other workers.

As I said, I'm still digging at the mod_jk code to try to find out
what's going on, but hoping that maybe someone else has also seen this
problem.

I can't reproduce this on my system unfortunately, and it's quite
intermittent.

Andy

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Q? is it possible to patch an existing Tomcat server install in order to advance it 'in place' to a higher version?

2011-01-11 Thread Pid
On 1/11/11 5:08 PM, Christopher Schultz wrote:
 Mark,
 
 On 1/11/2011 11:41 AM, Mark Thomas wrote:
 On 11/01/2011 16:37, Christopher Schultz wrote:
 Kevin,

 On 1/10/2011 5:21 PM, Kevin Murray wrote:
 I currently have a functioning Tomcat 5.5.25 server installed on 64-bit
 Linux and my goal is to advance to version Tomcat version 5.5.31
 Is the a method akin to applying a patch to my existing Tomcat 5.5.25
 install which will advance it to version 5.5.31 ?

 You could probably just unzip a new binary package on top of your old
 one: anything new would be updated, but you might also inadvertently
 overwrite customizations you've made to configuration files, etc.

 It's best to take Pid's advice and do a side-by-side. The advantage of
 that is being able to roll-back with very little effort.
 
 Look into using CATALINA_HOME/CATALINA_BASE. With that configured, it
 took me  5 mins to upgrade the ASF test Jira instance from 6.0.29 to
 7.0.6 and most of that was waiting for Jira to start (twice because I
 forgot to clear out the work directory the first time).

Also +1 to eating one's own dogfood.  :)


p


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Starting Tomcat admin undeploys a web service

2011-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Robin,

On 1/10/2011 9:09 AM, Robin Capone wrote:
 You can't see me but, I'm banging my head on my desk.

Facepalm strikes again. :(

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0syogACgkQ9CaO5/Lv0PDBQwCeM+Fa3aA9jHwqoDV25x5CY28o
KrAAoJg8z+fBwt9HdylKIpDADsQg6tSh
=sggK
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Possible race condition with mod_jk + multiple workers in recovery mode

2011-01-11 Thread Andy Wang
I'm not sure, but it looks like the service() function in jk_lb_worker.c
calls puts a recovering worker into the JK_LB_STATE_PROBE state and then
doesn't set it to JK_LB_STATE_OK until after the end-service() call.

I think this allows a second thread to come in, and since
JK_WORKER_USABLE() returns false because of the JK_LB_STATE_PROBE state
it never tries to use that worker and the second request thread
completes, then the first request completes and finally marks the worker
as JK_LB_STATE_OK.

Still working on a reproducible state to debug this in, but does this
sound like a possible problem or am I mis-reading what the
end-service() call does here:
service_stat = end-service(end, s, l, is_service_error);

Thanks,
Andy

On 01/11/2011 12:08 PM, Andy Wang wrote:
 I'm still digging, but I thought I'd send this along to the mailing list
 while I try to decipher the mod_jk code.

 We're using tomcat-connector 1.2.31 on apache 2.2.17 on a Linux system.

 Log file is at this URL:
 http://www.moonteeth.com/~dopey/tomcat/mod_jk.log
 http://www.moonteeth.com/%7Edopey/tomcat/mod_jk.log

 The worker configuration consists of a load balanced worker with 9
 workers (tomcat1-9).  At any given time, usually only one tomcat is in
 use.  In the case of the log, all the workers are in recovery state
 (apache started before tomcat, and someone hit the page so the tomcats
 are all down).

 In the log file the requests
 5356:1146444096
 /Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login
 and
 5357:1138932032 /Windchill/servlet/WindchillGW/wt.httpgw.HTTPServer/ping
 come in almost simultaneously.   5357:1138932032 completes first and
 picks up tomcat1, recovers it and uses it.

 However 5356:1146444096 never tries worker 1.  5357:1138932032 grabbed
 worker 1 before 5356:1146444096 does, and by the time  5356:1146444096
 gets the worker list, it never bothers to try tomcat1, just tries allaf
 the other workers.

 As I said, I'm still digging at the mod_jk code to try to find out
 what's going on, but hoping that maybe someone else has also seen this
 problem.

 I can't reproduce this on my system unfortunately, and it's quite
 intermittent.

 Andy

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org