Montz, James C. (James Tower) wrote:
On a related note, It would appear to me that java is not adhering to
the -Xmx option;
I have several instances that report using 3-4X RSS Memory what -Xmx is
set to.
For example,
Instance1:
CATALINA_OPTS="-sqerver -Xms64m -Xmx128m"
PS Ouput:
USER %CPU
Chuck,
Many thanks for your feeback.
> > From: Guillaume Lahitette [mailto:[EMAIL PROTECTED]
> > Subject: Over 1000 threads running in production
> >
> > Our operations team discovered over 1000 java threads running
> > on each production server. It appears that about 20 threads
> > are added to
Take periodic thread dumps and read them. perl, grep, and wc are your friends
to parse the data without going insane.
The thread dumps should give you a general idea of who created them.
-Tim
Guillaume Lahitette wrote:
Hello Tomcat'oids,
This is Tomcat 4.1.26 on Linux with JDK 1.4.1_03, load bala
Hi,
I have the following setup:
1. A copied version of Tomcat 4.1.24 on Unix (i.e. I have merely
*copied* the entire tomcat folder from another installed location
instead of installing it)
2. My application WAR file referenced by the following Context in
Server.xml:
Tim,
Thank you. This is very helpful.
I've tried kill -3 (following a google hit:
http://www.findarticles.com/p/articles/mi_m0MLW/is_3_3/ai_114495281/print)
but can't see the thread dump in catalina.out nor localhost_logtxt
files. What did I miss (this is Linux)?
If you could share your per
Sorry - I run such tests in adhoc manner.
-Tim
Guillaume Lahitette wrote:
Tim,
Thank you. This is very helpful.
I've tried kill -3 (following a google hit:
http://www.findarticles.com/p/articles/mi_m0MLW/is_3_3/ai_114495281/print)
but can't see the thread dump in catalina.out nor localhost_log..
> ==
> Date: Mon, 14 Mar 2005 17:09:35 -0600 (CST)
> From: Christian Rebollar <[EMAIL PROTECTED]>
> To: Tomcat Users List , [EMAIL PROTECTED]
> Subject: Re: Session listener
> ==
>
> I don't know, but when I closed the browser the
> listener class ca
I found the FAQ (http://jakarta.apache.org/tomcat/faq/development.html) and
followed the instructions there, including:
added env variable JPDA_ADDRESS=8000
added env variable JPDA_TRANSPORT=dt_socket
added "-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
to java command
Hi,
I m new to tomcat 5.0.28. Previously i worked with tomcat 4.1.x-where
i will create a context with a docBase and this way i will work with
my webApp.
Now the world has changed a lot-everyone just deploying a WAR file
under webapps.
But i still want to work in the old manner-i want my
C:\Dir\\ja
> ==
> Date: Tue, 15 Mar 2005 08:12:07 -0500
> From: "Fenderbosch, Eric" <[EMAIL PROTECTED]>
> To:
> Subject: Trouble w/ remote debugging w/ Tomcat 5.5 and JDK 5.0
> ==
>
Firewall of SP2 enabled?
G.
--
Yes, but I can connect to http on port 8080 just fine. Is there some setting
that might be allowing 8080, but blocking 8000?
I'll have to check this when I get home. I'm posting from work where my
configuration is different.
-Original Message-
From: Giuseppe Briotti [mailto:[EMAIL PRO
Ashutosh Sharma wrote:
Hi,
I m new to tomcat 5.0.28. Previously i worked with tomcat 4.1.x-where
i will create a context with a docBase and this way i will work with
my webApp.
Now the world has changed a lot-everyone just deploying a WAR file
under webapps.
But i still want to work in the old mann
Hello,
I'm trying to contact a Jini lookup service (reggie) from a simple
servlet. I'm using Tomcat 5.5.7, Java 1.5.0_01, Jini 1.2.1 and Solaris8.
The problem is that, after the call to LookupDiscoveryManager() (see
source code below), the "discovered()" method is never called back.
Here is wha
Hi David,
Thanks for the reply.
But if i see the manager.xml under this location it's contents are like this:
So for my webApp viz. reports if i put this kind of contents:
and then i restart the tomcat i see the directory listing.
Shud i giv refrence of build dir or src directory. Ac
Ashutosh Sharma wrote:
Hi David,
Thanks for the reply.
But if i see the manager.xml under this location it's contents are like this:
So for my webApp viz. reports if i put this kind of contents:
debug="0" privileged="true">
and then i restart the tomcat i see the directory listing.
S
Hi,
I'm starting a new thread in my init servlet(I know it has been
discussed few time, that it's not the best idea, but anyway)
and everyhing is fine untill I need to restart tomcat.
When I shutdown (shutdown.sh) Tomcat the java process remain active.
The question is it expected? or I need to ta
Hi,
Tomcat won't know anything about your Thread just because you created it in
init(). Tomcat does not monitor your threads, you need to manage them yourself
if you insist on creating them which many will tell you is naughty. Maybe you
can kill your Thread in the destroy() method of the same s
Set the thread to act like a daemon.
It's a Thread [class] thing.
There are ten better ways to resolve the same problem without threads.
Viorel Dragomir
.
..
---
- Original Message -
From: Mark
To: tomcat-user@jaka
set isDaemon(true) for all your threads.
On Tue, 2005-03-15 at 10:31, Mark wrote:
> Hi,
> I'm starting a new thread in my init servlet(I know it has been
> discussed few time, that it's not the best idea, but anyway)
> and everyhing is fine untill I need to restart tomcat.
> When I shutdown (shu
I apologize for the previous post.
The Read Receipt was enabled [because of my boss's will] and I forgot about it.
Thank you for your understanding,
Viorel Dragomir
.
..
---
- Original Message -
From: Mark
To: tomcat
Is there a windows version of tomcat (servlet container) on a
apache (windows version) web server ?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
> From: brian dell [mailto:[EMAIL PROTECTED]
> Is there a windows version of tomcat (servlet container) on a
> apache (windows version) web server ?
'On' no, behind yes. Run the Windows version of Apache, mod_jk, and
Tomcat on a Windows JVM.
- Peter
Hope someone can help. I've searched through the archives and this seems to be
a common problem, but even detailed instructions
have left me stumped. I'm trying to get client certificates to be required by
tomcat by setting clientAuth=true but I can't seem to figure out how
to get the client ce
To get a servelet engine one needs the following
apache web server
and tomcat servlet engine ??
What about J2EE ? Does one need that as well ? Or the servlet
engine above (like tomcat) would contain the J2EE as well.
__
Do You Yahoo!?
Tired of spa
Is it possible to do something like the following? I have as much code
as I want in Java classes. This is just to make modifying the UI
easier.
<%!
public String test() {
%>
test2
<%!
}
%>
<%=test()%>
Charles Killmer
> From: brian [mailto:[EMAIL PROTECTED]
> To get a servelet engine one needs the following
> apache web server
No. Tomcat will work standalone.
> and tomcat servlet engine ??
Or another engine such as Jetty. But that's heresy on this list ;-).
> What about J2EE ? Does one need that as well ?
Hi,
Yes, and some would say you don't need the Apache web server, since Tomcat can
act as a web server too. Tomcat provides an implementation of the Servlet and
JSP aspects of the J2EE suite, so if you only need those you're ok.
Allistair.
> -Original Message-
> From: brian [mailto:[EM
How to install tomcat for linux,
http://www.mythic-beasts.com/support/topic_vds_java.html
How to make it act like a normal webserver with jsp & virtual hosting support,
rather than worrying about packaging .war files etc.
http://www.ex-parrot.com/~pete/tomcat-vhost.html
Hope this helps.
Pet
you have to terminate that thread explicitly. You can do that by
defining ApplicationServletContextListener and have it stopped on
contextDestroyed event
DarekC
On Tue, 2005-03-15 at 07:31, Mark wrote:
> Hi,
> I'm starting a new thread in my init servlet(I know it has been
> discussed few time, t
Below is the tomcat installation files for download and have
pasted the contents of README packaging information.
One binary is an exe, one is tar.gz, one is a zip, another is
Deployer. Which one is the installation file for windows ?
The .exe is the Tomcat Setup wizard. Is this the windows
versi
the exe
On Tue, 2005-03-15 at 11:56, brian wrote:
> Below is the tomcat installation files for download and have
> pasted the contents of README packaging information.
>
> One binary is an exe, one is tar.gz, one is a zip, another is
> Deployer. Which one is the installation file for windows ?
>
> From: Ben Souther [mailto:[EMAIL PROTECTED]
> Subject: Re: Installing tomcat (help)
>
> the exe
>
> On Tue, 2005-03-15 at 11:56, brian wrote:
> > One binary is an exe, one is tar.gz, one is a zip, another is
> > Deployer. Which one is the installation file for windows ?
Although the .exe is a
I have been preparing to write a servlet to handle image uploads.
It looks like most people are using the latest cos[date].jar file from
http://www.servlets.com/cos/index.html
Is this still the recommended method?
Are there any security concerns that I should address?
Thank you for any help.
Take
Found the solution: to know which PID to "kill -3" for, use ps -ef --forest
to detect the parent thread which has the *most* child threads. Then the
thread dump shows in catalina.out.
This is where I found the answer:
http://groups-beta.google.com/group/weblogic.developer.interest.performance/
bro
I think most people are moving to the Jakarta Commons File Upload jar.
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
> -Original Message-
> From: Shannon Scott [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 15, 2005 10:07 AM
> To: tomcat-user@jakarta
Yes I would say so, we use JCFU for loads of image and document uploads as it
fronts the CMS.
> -Original Message-
> From: George Sexton [mailto:[EMAIL PROTECTED]
> Sent: 15 March 2005 17:11
> To: 'Tomcat Users List'
> Subject: RE: image upload
>
>
> I think most people are moving to th
Hello All,
I have searched the archives but have been unable to find a solution
to my problem.
I am integrating Apache 2.0.52 with Tomcat 5.0.28 using mod_jk 1.2.8
(compiled from source). My client wants to continue using Apache as
the web server due to security and ease of configuration issues,
On Tue, 15 Mar 2005 10:27:21 -0600, Charles P. Killmer
<[EMAIL PROTECTED]> wrote:
> Is it possible to do something like the following? I have as much code
> as I want in Java classes. This is just to make modifying the UI
> easier.
>
> <%!
> public String test() {
> %>
> test2
> <%!
> }
> %>
> <
Maybe I wasn't clear. The code that I pasted below is throwing all
sorts of errors. Assuming that something like this can be done. Why
does my code throw errors?
Thanks
Charles
-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 11:51 AM
On Tue, 15 Mar 2005 12:13:53 -0600, Charles P. Killmer
<[EMAIL PROTECTED]> wrote:
> Maybe I wasn't clear. The code that I pasted below is throwing all
> sorts of errors. Assuming that something like this can be done. Why
> does my code throw errors?
Obvious question... but what errors? On close
You can't mix:
<%!
stuff with open brace {
%>
JSP CODE
<%!
} closeing brace here
%>
Anything in <%!%> are class level declarations which live outside the
jspService() method. See the generated java to see what i mean.
-Tim
Charles P. Killmer wrote:
Maybe I wasn't clear. The code that I pasted
My goal in this is to have a function that returns a string. But
instead of doing something like this:
<%!
Public String test() {
return "";
}
%>
I want to be able to jump out of JSP and just have the function echo it
to the screen without needing to escape the "s to put it into a Strin
You can't do that. The jsp spec forbids it.
-Tim
Charles P. Killmer wrote:
My goal in this is to have a function that returns a string. But
instead of doing something like this:
<%!
Public String test() {
return "
cellpadding=\"0\">";
}
%>
I want to be able to jump out of JSP and just have the
I didn't hear back from any one so I looked through the code. I
couldn't find any sign of code that would provide this functionality,
so I added the following before line 605 of jk_ajp_common.c. I
recompiled and it seems to be working as intended so far.
if (d->status=500) {
jk_log(l,
Hi,
How can I find out where session serialized objects get stored and
how can I force _not_ to load session serialized objects ( I need it
when a new version of web application get deployed)
__
Do you Yahoo!?
Yahoo! Small Business - Try our new
Hi there,
I find out really strange that when I copied over a new .war file I
cannot see my changes. Here what I've done:
$./shutdown.sh
$cp ~/my.war webapps
$./startup.sh
If I remove 'my' directory from 'webapps' everything works properly
and new web app get deployed.
Is there any way to enforc
Sanjeev,
How can i set the path for the keystore in server.xml?
--- Sanjeev Srivastava
<[EMAIL PROTECTED]> wrote:
> Hi Dushyanth,
>
> Have you created server.keystore, also are you
> specifing the right path in server.xml for the
> server.keystore. Check this, your problem will be
> solved.
>
All,
I believe that I found my problem, and for the sake of posterity I'm
posting it for the next poor fool who is forced to chase around the
web and through books looking for decent documentation.
When I set up Tomcat I copied the sample workers.properties file from
the JK source. However it tu
Dan Thiffault wrote:
if (d->status=500) {
jk_log(l, JK_LOG_ERROR,
"Tomcat server returned status=%d",d->status);
JK_TRACE_EXIT(l);
return JK_FALSE;
}
I may end up using a case statement and preventing apache from trying
the next worker on bad request or something like that. Ho
Does anyone know of a creative solution to this? Or some way to achieve
what I am after?
Thanks
Charles
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 12:33 PM
To: Tomcat Users List
Subject: Re: {OT] Re: Jumping in and out of JSP
You can't d
This sound very much similar to error handling. However,If you could
explain exactly about what you are trying to do then probably we could
suggest an alternative to get it done.
Vinod
-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 2:0
I am using a template.jsp file that calls a function defined in another
file. Then every file, ie index.jsp, in the site defines that function
and includes the template which calls the function. That way I only
have one file defining what the site looks like.
Is there a better way to template
On Tue, Mar 15, 2005 at 01:31:38PM -0600, Charles P. Killmer wrote:
: Is there a better way to template a site. I don't like the method of
: including sections into each jsp file. This makes adding new sections
: to every page difficult.
You could look into Tiles. That may require Struts, but i
Charles P. Killmer wrote:
Does anyone know of a creative solution to this? Or some way to achieve
what I am after?
Not to rain on your parade :-) but one of the main reasons for
using JSP (IMHO) is to *separate* markup and code.
Something like this wouldn't even be considered "best practice"
in /m
What is the situation where you find this useful?
Byron
-Original Message-
From: Dan Thiffault [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 1:41 PM
To: Tomcat Users List
Subject: Re: Failing a JK Worker thread
I didn't hear back from any one so I looked through the code. I
Dushyanth!
Have you created server.keystore using
keytool..? In server.xml check the code below and
provide the path to KeystoreFile and put the password.
keystoreFile="/cm/de/cfg/server.keystore"
keystorePass="changeit"
Make sure the 443 or 8443 should be same in port 80
and port
So with JK 1.2.8, is there any equivilent method of finding the data in
the jkstatus scoreboard from mod_jk2??
I understand jk2 is no longer the choice module for Apache 2.0.x. Funny,
when we first upgraded to Apache 2, the official line was that mod_jk1
should not be used with Apache 2, and we n
You can find that info here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/manager.html
The easy way to disable saving of sessions is to add this to you webapp xml
under conf/Catalina/localhost
For example, here's the start of mine:
-Original Message-
From: Mark [mailto:
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
By definition _all_ -X parameters are non-standard, but there are quite a
few you simply can't avoid using (-Xmx being the obvious example). It
would seem like JRockit took the wrong turn here, since -Xrs has been used
to reduce JVM signal usage
Hi
I'm trying to setup Apache 2.053 on one machine, and Tomcat 5.028 on another.
I've put mod_jk.so in my modules directory. Configured bother the httpd.conf
and the workers.properties file on the apache machine.
Here are the lines
httpd.conf
LoadModule jk_modulemodules/mod_jk.so
JkWorke
So, if I understood your requirement correctly, you want to execute a
single file, I,e JSP for every request. Probably after processing a
request you might wish to set an attribute to identify the response
view.
I would suggest to use standard jsp include tag, with this your template
JSP would loo
> From: BB Commish [mailto:[EMAIL PROTECTED]
> Subject: RE: Tomcat 5.5.7+JRockit = windows service won't start
>
> With regards to the registry, the installer does not appear
> to create an entry that explicitly defines the -Xrs parameter.
That's odd, since the -Xrs is in my registry entry, albe
Good afternoon Byron.
There is a way in JK to check the status of your workers and even configure
them to some degree. It requires pretty much the same setup as in JK2; for
details about this and other VERY useful info on putting Apache and Tomcat
together see this webinar:
https://jboss.webex.
We have an application running as a webapp which requires legacy
systems and network resources which are not fault-tolerant. Luckily
these resources are stateless. So we have replicated these resources so
that one is available per tomcat instance. When we attempt to use one
of these resources
I've attempted to install tomcat 5.0.28 from source on an AIX 5.2 system
without internet access. When running ant, cvs fails.
So I downloaded and installed the binaries, but I get http 500 errors when
running a javascript for secure login. The vendor supplying the script feels
that tomcat does no
We employ an SSL appliance in front of servers running Tomcat5
stand-alone and wish to configure the CoyoteConnector as we have done
previously with Tomcat4:
However, since secure="true" is being specified,
Http11Protocol.checkSocketfactory() in Tomcat 5.0.30 is attempting to
create a secure
Hi all,
Recently I lost the hard drive on one of my production tomcat servers. I've
since reinstalled and setup the effected machine to mirror the configuration
of one of my other servers that I know to be working fine. I know for a fact
that my servlet code is fine and that the tomcat configurati
I just disabled the firewall and I'm still getting the same thing. Connection
refused.
-Original Message-
From: Giuseppe Briotti [mailto:[EMAIL PROTECTED]
Sent: Tue 3/15/2005 8:21 AM
To: tomcat-user@jakarta.apache.org
Cc:
Subject:Re: Trouble w/ remote debugging w/ T
I tried downloading the .tar.gz package and extracted the startup scripts to
bin. Starting with
catalina.bat run
or
cataline.bat start
works fine.
However,
catalina.bat jdpa start
simply returns to the command prompt.
Now I'm really confused...
-Original Message-
From: Fenderbosch, E
69 matches
Mail list logo