Re: EXTERNAL: Re: Tomcat hung

2010-11-19 Thread Jim Cox
In your full production trace, is there an indication which thread has the "<0xd50244e8>" lock? I've debugged similar situations where threads were "blocked waiting for monitor <0x.>" (getting java.sql.Connections, as it turned out) -- identifying & examining the thread that had locked that mo

Re: Tomcat Going down Frequently

2010-11-15 Thread Jim Cox
Is "LoginBean.java" your code (or code that you control)? You might have to change that code a bit to handle a session that has already been invalidated. On Mon, Nov 15, 2010 at 6:03 AM, Amol Puglia wrote: > Hello team, > > Tomcat Server going down frequently with the following messages in the lo

Re: JSP Page "hangs"... clues?

2010-02-10 Thread Jim Cox
Can you truss/strace Tomcat, or watch the network traffic between MySQL and Tomcat? Comparing captures from those tools between successul and hung page generation might show what the issue is, or at least suggest other areas to look at. On Wed, Feb 10, 2010 at 2:53 PM, Jordan Michaels wrote: > We

Re: thread dumps catalina.out

2009-09-02 Thread Jim Cox
000d5140 nid=0x7 runnable prompt# On Wed, Sep 2, 2009 at 3:09 PM, keeplearning wrote: > > Sorry. But I didn't understand how using 2 terminals would help me with the > questions I posted. > > > > Jim Cox-2 wrote: >> >> FWIW, I usually do a tail/tee on catalina.out

Re: thread dumps catalina.out

2009-09-02 Thread Jim Cox
FWIW, I usually do a tail/tee on catalina.out in a term, then do the kill -QUIT from another term, then kill the tail/tee combo which leaves me with a reasonably clean thread dump. For example: Terminal A: prompt$ tail -f /usr/local/tomcat/logs/catalina.out | tee /tmp/tomcat-threads.tmpA Termin

Re: PostgreSQL vs MySQL with Tomcat

2009-01-23 Thread Jim Cox
On Fri, Jan 23, 2009 at 6:23 AM, Leon Rosenberg < rosenberg.l...@googlemail.com> wrote: > On Fri, Jan 23, 2009 at 11:45 AM, Chris Wareham > wrote: > > > By it's very definition (see Codd or Date), an RDBMS should be capable > > of performing joins with good performance. MySQL often struggles to d

Re: PostgreSQL vs MySQL with Tomcat

2009-01-22 Thread Jim Cox
When creating tables with referential integrity in MySQL you still get gems like, e.g.: mysql> create table jimtest ( colA varchar(32) NOT NULL, CONSTRAINT fk1 FOREIGN KEY(colA) REFERENCES jimtest2(colA) ON DELETE CASCADE ); ERROR 1005 (HY000): Can't create table './test/jimtest.frm' (errno: 15

Re: PostgreSQL vs MySQL with Tomcat

2009-01-16 Thread Jim Cox
As far as schemas in Postgres go, a normal way to handle them is to create schema-specific users with an appropriately-set default schema, e.g. something like: CREATE SCHEMA company_a ; CREATE USER company_a_user PASSWORD 'foo' ; ALTER USER company_a_user SET search_path TO company_a, public

Re: Tomcat not using multiple cores

2008-10-16 Thread Jim Cox
On Thu, Oct 16, 2008 at 10:30 PM, Matthew Laird <[EMAIL PROTECTED]> wrote: [...lines snipped...] > We have an in-house application running on Tomcat 5.5 with Sun JDK 1.6. > The machine is an x86 dual-CPU, quad core (8 cores total) with 16GB of > RAM. We're running OpenSuSE 10.2, 32-bit. Java mem

Re: Browser Limited web application

2008-09-17 Thread Jim Cox
On Wed, Sep 17, 2008 at 6:58 AM, karthikn <[EMAIL PROTECTED]>wrote: > > Question 1 : How to implement a Filter in the application for Browsers > limitation >The web application should be visible only in IE-6 or > Fire Fox 2.0 ? > You can write & deploy a Filter that ex

Re: Using tabbed browsers causes session sharing

2008-08-18 Thread Jim Cox
FWIW, you can create distinct "profiles" with mozilla/firefox: firefox -ProfileManager And then start distinct processes with: firefox -P On Mon, Aug 18, 2008 at 8:19 AM, David Smith <[EMAIL PROTECTED]> wrote: > In my experience, Internet Explorer starts a new process (and has a > separate

Re: Application failed to start - debug suggestions wanted

2008-08-12 Thread Jim Cox
On Tue, Aug 12, 2008 at 8:09 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > Can you suggest ways to troubleshoot the problem I am having? > > I can neither get my war file, nor an exploded dir tree to start (tomcat > 5.5) > > In the [catalina] log file I see these errors, which I believed relat

Re: jsp compile question

2008-07-29 Thread Jim Cox
On Tue, Jul 29, 2008 at 5:05 PM, Jq <[EMAIL PROTECTED]> wrote: > How can I simulate the way tomcat builds a jsp file? > > I need to debug a .jsp that fails to build when requested. > > Thanks. If you mean debugging why JSP compilation fails, you can look at the generated servlet code (the .java

Re: compile failed: Tomcat-6.0.16 with jdk-1.6.0_06 - bcp/BasicDataSource.java:44 error

2008-07-28 Thread Jim Cox
Alas, poor Yorick! No. (sorry, couldn't resist). On Mon, Jul 28, 2008 at 7:56 PM, Poor Yorick < [EMAIL PROTECTED]> wrote: > compiling tomcat-6.0.16 on LInux kernel 2.4.21-50.ELhugemem with > jdk-1.6.0_06, > I run into the following error: > > > build-tomcat-dbcp: > [copy] Copying 63 files t

Re: Tomcat 6 Secure Connection to Database

2008-07-14 Thread Jim Cox
On Mon, Jul 14, 2008 at 5:27 PM, jcarey03 <[EMAIL PROTECTED]> wrote: > > I am working with Tomcat 6 for a Java web application, and I was wondering > if > Tomcat provides the capability to connect to a database, let's say Sybase's > ASE, using SSL. Is there any documentation describing how to do

Re: Excess whitespace generated

2008-07-10 Thread Jim Cox
On Thu, Jul 10, 2008 at 12:51 PM, Jonathan Mast <[EMAIL PROTECTED]> wrote: > I'm writing a jsp to return out a simple xml document and it is being > preceded by quite a few line breaks, causing my test parser to fail. > > The page simply calls out.println(xmlstring); > > Is there another way to co

Re: logging

2008-07-08 Thread Jim Cox
Googling for "Tomcat syslog logging" seems to return some useful links, e.g.: http://kbase.redhat.com/faq/FAQ_68_8798.shtm On Tue, Jul 8, 2008 at 9:29 AM, Lynn Hollerman <[EMAIL PROTECTED]> wrote: > I have been asked to see about redirecting the output logs from the various > tomcat instances(a

Re: versus <% include %>

2008-06-05 Thread Jim Cox
That's not really what I see here. I think of <%@ include="file"%> directives as akin to a C compiler's #include, or a shell's "source", directive in that the content of the file is interpreted as if it were directly typed into the containing file. On the old-ish version of Tomcat that I have, cha

Re: tomcat performance issue.

2008-06-04 Thread Jim Cox
Are you maxing out your database connection pool? On Wed, Jun 4, 2008 at 1:29 PM, Zufeng Huang <[EMAIL PROTECTED]> wrote: > proxool: > 9 >20 >450 >100 >

Re: Requests being processed at a certain moment

2008-06-04 Thread Jim Cox
> Regards, > Dave > > On Jun 3, 2008, at 10:15 AM, Álvaro Morillas (Sortes Ing. Inf. S.L.) > wrote: > > > Although I don't use servlets, only jsp's, it's a solution I've > > thought, > > using a log taglib. The problem is that I must insert the co

Re: Requests being processed at a certain moment

2008-06-03 Thread Jim Cox
I use a filter servlet to log entry/exit timestamps for requests along with some shell scripting to process the logs looking for "still open" requests. I've been using it for over a year for a production site, it's been very useful for debugging unexplained slowdowns, hangs, etc. Filter is pretty

Re: Long freeze during tomcat start

2008-05-23 Thread Jim Cox
gt; inet6 addr: ::1/128 Scope:Host > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:3894 errors:0 dropped:0 overruns:0 frame:0 > TX packets:3894 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes

Re: Long freeze during tomcat start

2008-05-22 Thread Jim Cox
cope_id=0}, > 28) = 0 > fcntl64(10, F_GETFL)= 0x2 (flags O_RDWR) > fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0 > accept(10, {sa_family=AF_INET6, sin6_port=htons(51175), inet_pton(AF_INET6, > "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [

Re: Long freeze during tomcat start

2008-05-22 Thread Jim Cox
lowinfo=0, sin6_scope_id=0}, > [28]) = 0 > socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 11 > connect(11, {sa_family=AF_INET6, sin6_port=htons(48669), > inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, > 28) = -1 ETIMEDOUT (Connection timed out) &g

Re: Long freeze during tomcat start

2008-05-22 Thread Jim Cox
I'd think it's more likely to be timing out while resolving a hostname via DNS, but starting tomcat via strace should show you exactly where it is pausing. On Thu, May 22, 2008 at 5:08 AM, Adam Hardy <[EMAIL PROTECTED]> wrote: > I'm still frustrated by this freeze. Looking at this thread dump, I

Re: Tomcat takes 2 hours to start

2008-04-30 Thread Jim Cox
>> >> when i start the server in normal mode with command >> >> " /opt/tomcat/in/catalina.sh run" >> >> it starts in almost 2 hours. FWIW, your log excerpt shows a 2-minute delay, not a 2-hour delay as your originally reported. In any case, re your question on starting via "truss", it should be

Re: Tomcat takes 2 hours to start

2008-04-29 Thread Jim Cox
On Tue, Apr 29, 2008 at 7:16 AM, jitesh sharma <[EMAIL PROTECTED]> wrote: > > without my web application it does not takes more then 5-6 seconds. > > Peter Crowther wrote: > > > >> From: jitesh sharma [mailto:[EMAIL PROTECTED] > >> I have successfully installed Tomcat 5.5.27 over my Solaris > >> s

Re: Performace - long time to release connection

2008-04-18 Thread Jim Cox
data.length); > ouputStream.flush(); > ouputStream.close(); > response.setStatus(HttpServletResponse.SC_OK); > > But still no solution. > The response header keep showing Content-Length=4332. > > How I can set the Content-Length in a reliable way ? > From where this 4332 v

Re: Problem with datasource connecting to postgresql

2008-04-17 Thread Jim Cox
Do you use the same version of Java and run as the same user Tomcat runs under when you run it "statically outside of Tomcat"? On Thu, Apr 17, 2008 at 9:53 AM, Ken Bowen <[EMAIL PROTECTED]> wrote: > Hi all, > > I've successfully built a number of Tomcat projects using MySQL, but now I > have to a

Re: Performace - long time to release connection

2008-04-16 Thread Jim Cox
Does the client get a "Content-length" header, and if so does the actual length of the response body match? If not it has to either timeout or wait for the server to close the connection. On Wed, Apr 16, 2008 at 11:33 AM, Danilo Luiz Rheinheimer < [EMAIL PROTECTED]> wrote: > Hi, > > I have a Jav

Re: How to stop having to put :8080 in the url?

2008-04-11 Thread Jim Cox
You've lost me a bit on what servers are running -- you have IIS serving port 80, and Tomcat serving 8080? If so, can't you simply configure IIS to "proxy" the requests to your Tomcat on port 8080? On Fri, Apr 11, 2008 at 9:40 AM, Gary Opela (Corporate) < [EMAIL PROTECTED]> wrote: > Thanks, but t

Re: OT: a java question - static initialization

2008-02-20 Thread Jim Cox
On Feb 20, 2008 10:47 AM, Dave <[EMAIL PROTECTED]> wrote: > class Foo { > >private static int; > > static { > a = 100; > } > > Foo() { > > } > > } > > Class.forName("package.Foo").newInstance(); > > The static init block of Foo is not called. > > I a

Re: Trying to know why tomcat shuts down

2008-02-20 Thread Jim Cox
Is Tomcat getting killed by the "OOM Killer"? http://linux-mm.org/OOM_Killer On Feb 20, 2008 8:12 AM, David Delbecq <[EMAIL PROTECTED]> wrote: > Hello, > > our tomcat, in a test environment, is shutting down unexpectedly. There > is no messages about stopping webapp, or even receiving SHUTDOWN m

Re: Tomcat hangs on writing JSP page to socket

2007-11-28 Thread Jim Cox
On Nov 28, 2007 1:50 PM, Adam Feuer <[EMAIL PROTECTED]> wrote: > Folks, > > We're getting intermittent problems where one tomcat thread hangs for up to > 10 minutes writing JSP pages to a socket. We think the socket is an HTTP TCP > socket. The stack trace from a thread dump for the hung thread is

Re: Tomcat becomes non-response for ~30 seconds

2007-11-27 Thread Jim Cox
On Nov 27, 2007 3:30 PM, jnedzel <[EMAIL PROTECTED]> wrote: > > Thanks, I'll look at maxing out the logging. > A simple thing to do would be to grab a stack dump with a "kill -QUIT " during one of these "slow periods" and see if anything jumps out at you, compare it to one from a "normal period",

Re: Tomcat - threads / throughput limits?

2007-11-08 Thread Jim Cox
On Nov 8, 2007 10:41 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > We have an architecture where we have many tomcat app servers load > balanced by apache at the front. > > In resolving our current bottleneck i used JProfiler to see what the > tomcat applications were doing and when under high load the

Re: RES: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Jim Cox
On 10/23/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Marcus, > > Milanez, Marcus wrote: > > I think you could configure your server so that the 80 port is not > > available, only the 443 one. Programaticaly, you can invoke the > > request

Re: Too Many Open Files error

2007-10-19 Thread Jim Cox
On 10/19/07, Daniel M Garland <[EMAIL PROTECTED]> wrote: > Thanks Jim, > > It was previously set to 1024, and I quadrupled it. When you say ulimit > is persistent will it persist across a reboot? > > I don't seem to have the command lsof, I'll try and apt-get it. > > Cheers > Dan The settings shou

Re: Too Many Open Files error

2007-10-19 Thread Jim Cox
On 10/19/07, Daniel M Garland <[EMAIL PROTECTED]> wrote: > Should I then place ulimit -n in the catalina startup scripts? Setting a limit with ulimit is "sticky" (i.e. persistent), so there's no need to stick it in the startup script. However, you didn't answer the previous two questions abo

Re: Too Many Open Files error

2007-10-18 Thread Jim Cox
On 10/18/07, Daniel M Garland <[EMAIL PROTECTED]> wrote: > Hi all > > I'm seeing a problem on a Tomcat instance: > > 18-Oct-2007 12:41:47 org.apache.tomcat.util.net.AprEndpoint$Acceptor run > SEVERE: Socket accept failed > org.apache.tomcat.jni.Error: Too many open files > at org.apache.to

Re: Copying large files around

2007-10-13 Thread Jim Cox
On 10/13/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > David, > > David Kerber wrote: > > Let me give a bit more detail: I am working on a utility function in my > > webapp that will periodically copy the database file from the db server >

Re: Tomcat hangs, what to do to diagnose the problem?

2007-09-27 Thread Jim Cox
On 9/27/07, Wm.A.Stafford <[EMAIL PROTECTED]> wrote: > Our Tomcat 4.1.30 instance seems to hang about once a week. i.e. the > application is unresponsive and it can not be restarted from the > management console. Tomcat must be restarted to restore functionality. > There is nothing in the logs to

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Jim Cox
Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007. This is a TimerTask. A thread which runs at exactly midnightat each of these crashes it has reported "Can't create directory '\.cs-aterm\logs\SY

Re: 100% cpu usage by "VM Thread" in tomcat

2007-09-21 Thread Jim Cox
On 9/21/07, Lindsay Patten <[EMAIL PROTECTED]> wrote: [ ...stuff elided...] > > If I look at the system status using the Tomcat manager webapp there are > often requests listed with ridiculously large values in the Time column, > several hundred seconds for jsp pages that only take a fraction of a

Re: Filter mapped to "/*" not seeing Axis requests (Tomcat 5.0.19)

2007-09-20 Thread Jim Cox
trigger it. > > If you have doubt, try to get stackTrace during an axis request (either > by making a fault during axis response, either by using a slow response > and sneding signal 3 to JVM) > > > En l'instant précis du 20/09/07 16:47, Jim Cox s'exprimait en c

Filter mapped to "/*" not seeing Axis requests (Tomcat 5.0.19)

2007-09-20 Thread Jim Cox
I developed a simple logging filter to debug some performance problems on a Tomcat 5.0.19 installation. It works well for the requests it sees, but the filter does not see requests serviced by a .wsdd-deployed Axis servlet. Anyone have any help/info/pointers to offer? Only one webapp is defined o