Re: Java stack trace, unable to connect to the database

2015-07-14 Thread Philip Wigg
 The last error is FATAL Database is starting up.

A quick Google search for FATAL Database is starting up seems to
suggest that is an error message coming from PostgreSQL and not from
Tomcat itself.

Hope that helps.

Phil.

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



Re: mod_jk question about socket_timeout

2010-04-16 Thread Philip Wigg
 Recent versions of mod_jk allow a very fine-grained response timeout
 configuration, so that you can e.g. set a general response timeout to 20
 seconds and a longer timeout like 60 seconds for special URLs you expect to
 take longer like report generation.

 The cases where you would need short timeouts are the cping/cpong and during
 connection setup. For the latter there is now also a special timeout, so
 that you can actually drop the socket timeout.

 Have a look at:

 http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html

 which tries to describe the possible timepouts and their implications in
 great length.

Thanks for your reply Rainer. I have had a read of that (very helpful)
document but I guess what I was wondering was if socket_timeout would
close a socket purely due to inactivity. The doc mentions timing out
on 'operations', which I would take to mean establishing a connection
or waiting for an ACK but actually it does seem to drop the connection
purely because it's inactive.

Cheers,
Phil.

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



mod_jk question about socket_timeout

2010-04-15 Thread Philip Wigg
Hi,

I'm using mod_jk 2.2.27 to connect via AJP to a JBoss backend. The
problem is that a reporting application takes a couple of minutes to
run a report but mod_jk seems to be closing the connection to the
back-end and the user receives a 502 Bad Gateway error. 10 seconds
after the request is made, I see the following in the mod_jk logs.:-

[Thu Apr 01 11:51:45.586 2010] [10148:1178638688] [debug]
jk_shutdown_socket::jk_connect.c (680): About to shutdown socket 13
[Thu Apr 01 11:51:45.726 2010] [10148:1084229984] [debug]
jk_watchdog_func::mod_jk.c (2850): Watchdog thread running
[Thu Apr 01 11:51:47.586 2010] [10148:1178638688] [debug]
jk_shutdown_socket::jk_connect.c (731): Shutdown socket 13 and read 0
lingering bytes
[Thu Apr 01 11:51:47.586 2010] [10148:1178638688] [info]
ajp_connection_tcp_get_message::jk_ajp_common.c (): (tomcat1)
can't receive the response message from tomcat, network problems or
tomcat (172.26.199.15:7032) is down (errno=11)
[Thu Apr 01 11:51:47.586 2010] [10148:1178638688] [error]
ajp_get_reply::jk_ajp_common.c (1920): (tomcat1) Tomcat is down or
refused connection. No response has been sent to the client (yet)
[Thu Apr 01 11:51:47.586 2010] [10148:1178638688] [info]
ajp_service::jk_ajp_common.c (2407): (tomcat1) sending request to
tomcat failed (recoverable),  (attempt=1)
[Thu Apr 01 11:51:47.586 2010] [10148:1178638688] [debug]
ajp_service::jk_ajp_common.c (2267): retry 1, sleeping for 100 ms
before retrying

The worker.properties file has only the following timeouts configured:-

worker.tomcat1.connect_timeout=1
worker.tomcat1.prepost_timeout=1
worker.tomcat1.socket_keepalive=true
worker.tomcat1.socket_timeout=10
worker.tomcat1.connection_pool_timeout=600

Which timeout is likely to be responsible for closing this connection?
I have run a network trace between the web and app servers and it
shows there's no AJP traffic at all between them whilst the report is
being generated and then the connection being closed after 10 seconds,
would socket_timeout close the connection in that case? I don't see
any errors about failing cping/cpongs.

Kind regards,
Phil.

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



Re: which version (5.5.28 vs. 6.0.26)

2010-03-19 Thread Philip Wigg
On 19 March 2010 09:12, Daniel Plappert plapp...@denkformat.de wrote:

 I am not sure which version to use. As a developer I want to use the new
 version 6.0.26, but unfortunately it's not part of the debian packaging
 management system. They only support the 5.5.28 version with the remark,
 that this version is more secure and tested than 6.0. Is that true?
 Because Tomcat 6.0 has a better memory usage and supports the new JSP
 and Servlet spec. I want to upgrade. But, as I mentioned before, this
 version is not part of the debian system (not now) and I've to install
 the new version 6.0.26 outside the packaging management system and I
 also have to update this tomcat version myself. Are there any reasonable
 reasons not to use the new version of tomcat?

Tomcat is very easy to install and upgrade outside of your
distribution's package management system and the general
recommendation on this list is that this is the way it should be
installed. Certainly doing it that way will make life easier if you
ask for help on this list and avoid you being told to install a
'proper Tomcat'.

 Has anyone experienced a
 performance difference between 5.5 and 6.0? And for production usage,
 which version is better?

This depends on your definition but most people would probably
consider version 6 to be 'better' as it contains the improvements
described at:-

http://tomcat.apache.org/whichversion.html

-- Phil.

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



Re: How to setup Tomcat Cluster - Help needed

2010-03-12 Thread Philip Wigg
On 12 March 2010 09:29, Josef Pullicino josef.pullic...@go.com.mt wrote:
 Dear All,

 I would like to setup a tomcat cluster with 2 nodes. The configuration
 must be in a horizontal alignment, meaning that the two nodes are going
 to reside on two different machines. Any idea of how to set it up since
 the default tomcat help guide does not provide any configuration
 examples.

http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html

-- Phil

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



Re: can not start tomcat and the jre_home var error

2010-03-04 Thread Philip Wigg
On 4 March 2010 14:13, maven apache apachemav...@gmail.com wrote:
 2010/3/4 Markus Schönhaber tomcat-us...@list-post.mks-mail.de

 04.03.2010 15:01, maven apache:

  2010/3/4 Caldarale, Charles R chuck.caldar...@unisys.com
 
  From: maven apache [mailto:apachemav...@gmail.com]
  Subject: Re: can not start tomcat and the jre_home var error
 
  In the terminal , I enter this the bin directory and run  sudo
  ./startup.sh
 
  Try it without the sudo.  You should never run Tomcat as root.
 
  Thanks, it works. But I wonder why?

 Because, by default, sudo resets the environment.

 Oh, thanks I got it.
 Now I found there is something wrong with the apr component  because I got
 the info:

 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:
 /home/kk/ProgramFiles/jdk1.6.0_17/jre/lib/i386/client:/home/kk/ProgramFiles/jdk1.6.0_17/jre/lib/i386:/home/kk/ProgramFiles/jdk1.6.0_17/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib

  And the whole logs can be found here:http://dpaste.com/167789/
 Does it matter?

That depends if you want to use the APR library or not. Try:-

http://tomcat.apache.org/tomcat-6.0-doc/apr.html

Cheers,
Phil.

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



Re: VSphere4 and tomcat 6.0

2010-02-17 Thread Philip Wigg
On 17 February 2010 15:07, Jon Brisbin jon.bris...@npcinternational.com wrote:
 We're running a dozen tcServer instances (Tomcat 6.0) on a VMware ESXi cloud 
 infrastructure. We haven't put vSphere in yet, but we're planning to. The 
 only thing I can say here is that there ARE differences between running 
 Tomcat on a VM and running it on dedicated hardware. I have problems with 
 things I know I'm doing right, but they just don't work the same on a VM. I 
 guess it has to do with the fact that the server is sometimes swapped out 
 if it's not in use. I think this causes issues, particularly with clustering, 
 which I have yet to make work in a way that I'm happy with.

 The big one that I noticed right away is that anything that uses /dev/random 
 will take forever to start. VMs have very little entropy in their pools 
 because they don't have any real hardware. This means stuff that uses 
 /dev/random for entropy (if it has security/SSL in it or is uses Random) will 
 take several minutes to start (usually 3-5 in our tests).

 When they run, they run great. We're seeing a great improvement in 
 performance running on VMware. It's just there seem to be a lot of little 
 issues that no one else seems to have. This means I either have no idea what 
 I'm doing (possible :) or things just run differently on VMs than they do on 
 real hardware.

VMWare did put out a white-paper about Java and VMWare:-

http://www.vmware.com/resources/techresources/1087

I can't vouch for how much use it is though I'm afraid. You might
consider switching to /dev/urandom for entropy if it's taking minutes
to generate with /dev/random.

Cheers,
Phil.

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



Re: running tomcat problem JNI native lib 1.1.18 + tomcat 6.0.20 + Solaris 5.10

2009-12-17 Thread Philip Wigg
 I'm building native library for:
 Tomcat 6.0.20
 JNI 1.1.18
 APR 1.4.1
 OS: Solaris 5.10 sparcv9
 compiler: gcc -m64

 Library was built ok. When I begin starting tomcat I have such logs:

 INFO: Loaded APR based Apache Tomcat Native library 1.1.18.
 Dec 17, 2009 7:08:19 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
 [false], random [true].
 Dec 17, 2009 7:08:20 PM org.apache.coyote.http11.Http11AprProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8081
 ld.so.1: java: fatal: relocation error: file
 ./native/lib/libtcnative-1.so.0.1.18: symbol SSL_CTX_set_info_callback:
 referenced symbol not found


 And server does not start up.

 Tomcat starts well if I use JNI 1.1.17, but with another issue: I can't
 connect to server via HTTPS from Mozilla browser and HTTP works well. Also
 if I use Internet Explorer 6 it works well.

 Does anybody know about such problem?

I don't know a lot about Tomcat native, but have you got openssl
installed? If not that's probably the issue.

Cheers,
Phil.

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



Re: running tomcat problem JNI native lib 1.1.18 + tomcat 6.0.20 + Solaris 5.10

2009-12-17 Thread Philip Wigg
 I don't know a lot about Tomcat native, but have you got openssl
 installed? If not that's probably the issue.

PS. Don't forget to recompile Tomcat native after you've installed it.

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



Re: Would like to monitor memory use offline

2008-08-07 Thread Philip Wigg
Hi,

the manager application can return values in XML. You just need to hit:-

http://localhost:8080/manager/status?XML=true

or wherever it's located. This makes it a bit easier to write shell
scripts based on Free Heap or Max Threads or whatever. I've got a perl
script which checks whatever values you need and logs them to a .csv
for easy reporting. I'll make it a bit better and post it if anyone
has any interest.

Kind regards,
Phil.

2008/8/6 Richard S. Huntrods [EMAIL PROTECTED]:
 To Ben  Mark,

 Thanks for the replies. I've been trying various things based on your
 suggestions. I find my best tool at the moment is Lambda Probe - though it
 hasn't been updated in a while, it does show me all the things (for the most
 part) that I wanted to watch.

 There's definitely some kind of problem with the JVM not releasing the PS
 Old Gen memory. I can watch as this gets gradually used up until it hits
 the max value - then Tomcat crashes with the GC/Heap error message. If I
 stop and start Tomcat before this limit is reached, the memory use resets to
 0 and the system does not crash.

 What is puzzling is that this identical system was working for weeks on end
 without a problem under the older versions of Java, Tomcat and Mysql I
 posted in my original post - and with 1/2 the stack. Only when I moved to
 the new servers (with all the new versions) did the GC crashes start.

 Now I'm trying different GC managers to see if one of them works better at
 freeing up memory - like maybe the compation parallel GC. We'll see.

 Again, thanks for the relies.

 Cheers,

 -Richard

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Enabling APR

2008-06-26 Thread Philip Wigg
Hi,

I believe I've enabled APR on my Tomcat installation. I can add the
additional options for my connectors that APR allows without Tomcat
complaining so I presume it's working okay. Is there any other way to
tell?

For example, the documentation says OS level statistics on memory
usage and CPU usage by the Tomcat process are displayed by the status
servlet but I can't see these? Are they meant to be in the Tomcat
manager application at http://localhost:8080/manager/status? If so I
can't see them.

Thanks,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enabling APR

2008-06-26 Thread Philip Wigg
 As Filip points out, setting java.library.path is a better strategy.

I'll do that. Thanks for your help everyone.

Cheers.
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat

2008-06-24 Thread Philip Wigg
What does your Tomcat logfile say is the problem? Look in catalina.out.

2008/6/24 Arumuganainar S [EMAIL PROTECTED]:
 Hi,

 I installed J2SE 1.4 (SDK and JRE) and Tomcat 5.5.

 When I launched the Tomcat Manager through the Start-Programs menu, it
 gives, Page can not be displayed error in the Internet Explorer.

 I started the Tomcat service. But it is getting stopped soon after I started
 it. The status is always Stopped. Please help me what could be the issue
 here. (It may be a very basic issue I think)

 Thanks,
 Nainar


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Pointers in tomcat

2008-06-23 Thread Philip Wigg
 How can I do this? My web app points to ROOT.war.

 Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Aliaswww.mysite.com/Alias
Aliasmysite.com/Alias
  /Host

If you're hitting the same server through both URLs then your DNS
sounds like it's fine. So now you just need to configure your
application to redirect requests from http://mysite.com to
http://www.mysite.com.You could do this using the urlRewriteFilter:-

http://tuckey.org/urlrewrite/

Or alternatively if you're using Apache you could do it through mod_rewrite.

Cheers,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Slight confusion about httpd with Tomcat.

2008-06-09 Thread Philip Wigg
Hi,

On this page:-

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

it says, When using a single server, the performance when using a
native webserver in front of the Tomcat instance is most of the time
significantly worse than a standalone Tomcat with its default HTTP
connector, even if a large part of the web application is made of
static files.

Does it say when using a single server because it assumes you'd need
httpd to do load-balancing if you had multiple servers? I'm asking
because we have an environment with multiple servers and a hardware
load-balancer so I don't need httpd for load-balancing, so does the
above statement apply to me too? (ie. Running without httpd on each
server would be give better performance). Or is there something else I
haven't considered?

Kind regards,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache and Tomcat sharing the same web root.

2008-05-23 Thread Philip Wigg
 I strongly advise against doing this. Unless you know *exactly* what you are
 doing it is far too easy to open a whole can of security worms, the most
 regularly seen of which is source code disclosure of all of the JSPs on the
 site.

Even if I have:-

JkMount /*.jsp my-worker
JkMount /*.do my-worker
JkMount /my/servlet* my-worker

in my httpd.conf? Or are there some other security considerations I
should be aware of?

Thanks,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: restart tomcat after reboot

2008-05-23 Thread Philip Wigg
2008/5/23 sur_1805 [EMAIL PROTECTED]:

 i m using tomcat 6 with jdk 1.6 on linux(RHEL 5) machine . i put the script
 catalina.sh(startup and shutdown tomcat) in init.d directory and also make a
 link with the command given below
ln -s /etc/init.d/catalina.sh  S75tomcat

 in the /etc/rc5.d directory . but it does not automatically start the tomcat
 after reboot. please give the solution asap.

One reason might be that the default runlevel for RHEL is 3. So it
should be in /etc/rc3.d/

Cheers,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache and Tomcat sharing the same web root.

2008-05-22 Thread Philip Wigg
Hi,

are there any reasons why Apache and Tomcat cannot share the same web
root folder, presuming that I exclude access to WEB-INF?

Thanks,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why does Tomcat become slow during weekends?

2008-04-22 Thread Philip Wigg
 We have a website based on embedded Tomcat with Jboss 4.0.2. We noticed that 
 every weekend the Tomcat becomes sluggish. I mean there are no errors like 
 HTTP404. The website simply hangs. We theorized that JVM is busy with garbage 
 collection. Is that realistic? Does anyone have any other suggestions?

What's the load average or CPU busy time of the server? Do you, or
might you expect, to get more website traffic at weekends?

Are there any obvious causes of Tomcat hanging? For example, if you
look inside the Tomcat manager application can you see if you are
running out of free heap space?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat running out of threads.

2008-04-21 Thread Philip Wigg
Hi,

I have several Tomcat web applications that run in separate JVMs. I
have one Apache instance that connects to the Tomcat instances via
mod_jk.

I am using:-

RHEL ES 4.0
Java 1.5.0_14
mod_jk-1.2.25-httpd-2.0.59.so
Tomcat 6.0.14.

Usually the sites work fine and are very responsive. The problem is
that I am intermittently seeing the following error in catalina.out:-

SEVERE: All threads (200) are currently busy, waiting. Increase
maxThreads (200) or check the servlet status

Tomcat never recovers from this needs to be restarted. The error does
seem to occur more often, but not exclusively, during periods of heavy
traffic. The thing is that I can see that even during very busy times
the number of busy threads does not normally exceed about 50. It seems
that sometimes the number of busy threads spikes very rapidly and the
system gets into some kind of state whereby threads are not released
for some reason and the system just runs out within about 10 minutes.
I tried increasing the maxThreads to 500, but it still ran out when
this problem occurred.

I am a sysadmin but the developers say that they don't think it is
related to code and that the three applications are different in the
way that they're written.

I have taken a thread dump after this problem occurs, and the threads
are all in the following state:-

TP-Processor191 daemon prio=1 tid=0x002b698b8000 nid=0x3a39
runnable [0x4d727000..0x4d727bb0]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
- locked 0x002adf95e878 (a java.io.BufferedInputStream)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:558)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)

I have a very simple workers.properties file which looks like so:-

worker.list=rt-worker,fs-worker,at-worker,tg-worker,gw-worker,gf-worker,pp-worker,bm-worker

worker.rt-worker.type=ajp13
worker.rt-worker.host=localhost
worker.rt-worker.port=8300

worker.fs-worker.type=ajp13
worker.fs-worker.host=localhost
worker.fs-worker.port=8301

[...] (other workers defined as above)

I was wondering if anyone had experienced similar issues or if anyone
could provide some guidance on how to investigate the cause. We've
tried to replicate the issue in our load-testing environment but we've
had no luck so far. Please let me know if there's any other
information you'd like me to provide.

Kind regards,
Philip Wigg.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat running out of threads.

2008-04-21 Thread Philip Wigg
Thanks for your help.

  There should be at least one TP-Processor thread doing an accept on a
 socket.

There is this one?

TP-Processor4 daemon prio=1 tid=0x002b69b0e980 nid=0x655f
runnable [0x41768000..0x41768ab0]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
- locked 0x002aa1914040 (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:306)
at 
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:660)
at 
org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:870)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)

  How many threads with the above stack do you have? This stack usually
 means, that the threads are connected to httpd and are waiting for the next
 request.

The rest seem to be in either of the two following states:-

TP-Processor107 daemon prio=1 tid=0x002b699b2070 nid=0x3969
runnable [0x482d3000..0x482d3db0]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
- locked 0x002adf8760b0 (a java.io.BufferedInputStream)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:558)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)

TP-Processor103 daemon prio=1 tid=0x002b69c0ad10 nid=0x3965 in
Object.wait() [0x47ecf000..0x47ecfbb0]
at java.lang.Object.wait(Native Method)
- waiting on 0x002ad0716cc8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:474)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662)
- locked 0x002ad0716cc8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)


 http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html

I have spent a while reading this document I wasn't sure if it would
help because the thread seems to be locked at the backend, ie. Tomcat
and not with mod_jk.

I have taken a grab of the Tomcat manager status page after this
problem has occured, one thing I have noticed is that all the
connections seem to be in 'keepalive' state as so:-

jk-8300 - Max threads: 200 Current thread count: 200 Current thread
busy: 199 Max processing time: 1667835 ms Processing time: 20958.227 s
Request count: 131357 Error count: 586 Bytes received: 0.00 MB Bytes
sent: 11208.42 MB

   Stage Time B Sent B Recv Client VHost Request
   K 5236624 ms ? ? 86.131.34.244 ? ?
   K 4534173 ms ? ? 86.144.67.135 ? ?
   K 4438805 ms ? ? 195.92.35.134 ? ?
   K 4118296 ms ? ? 81.133.90.42 ? ?
   K 3631710 ms ? ? 90.195.77.89 ? ?
   K 4192041 ms ? ? 82.17.167.106 ? ?
   K 3632369 ms ? ? 81.152.26.38 ? ?
   K 3867751 ms ? ? 91.84.104.189 ? ?
   K 3733813 ms ? ? 86.13.237.138 ? ?
   K 3932247 ms ? ? 88.212.143.70 ? ?
   K 3811565 ms ? ? 82.2.55.100 ? ?
   K 3892483 ms ? ? 91.125.225.165 ? ?
   K 4190193 ms ? ? 78.149.64.232 ? ?

Hope that helps.

Kind regards,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems stopping and starting tomcat server

2008-04-14 Thread Philip Wigg
  Are these connections the problem? How can I close them?

The top line shows a java process listening on port 8180. It has a PID
of 24027. So I would probably just murder it with a:-

kill -9 24027

and then you should be fine.

Cheers,
Phil.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems stopping and starting tomcat server

2008-04-14 Thread Philip Wigg
 I've removed Tomcat, including --purge with apt-get and I've reinstalled,
 but I still having the same problem.

What's the result of running:-

netstat -tanp | grep 8180

as root. Surely something is holding that port open?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]