I have a single servlet application and my server jumps up to 99+% cpu after
only just a few users, i do 'service tomcat restart' and it drops to less
than 5% cpu usage on a dual xeon server (shows up as 4 cpus in top).
My question is: what tools are available to diognose the cpu load of the
I have separate web and app servers. They are both behind a firewall
and I only have port 80 access to the web server and ssh to each of the
servers. I'm attempting to set up a development environment where we
can eventually add more app servers and add load balancing to provide an
environment
Hi Andrew
Thanks for the reply.
I have no issue using hiberante with tomcat if I am using get hibernate
configuration without using JNDI.
Once I used JNDi for hibernate in order to get session factory. I have
problem that Tomcat can not find JNDI context for hibernate.
Do you have any idea on
Hi,
I am looking for some help on a problem I have encountered with
executing a binary from a servlet using Runtime.getRuntime().exec()
The code that I have is simply executing a binary called cimmsim:
File theDir = new File(curdir+WORK/+rand);
java.lang.String cmdline = theDir+/cimmsim -f
Thanks Enrico,
However I seem to have inadvertently solved it. I was updating to the
latest release of jre and recompiled the servlet with 1.5.0 and now it
works.
Previously I was using 1.3.1.
So there we go.
Cheers
Mark
Enrico Giurin wrote:
Hello,
I guess yours is a problem of security
Hi,
My apologies for the confusion, but my previous claim to have sorted
this problem out is now incorrect. It seems with the upgrade to 1.5.0,
the execution of the external binary does work, --- but only sometimes??
---. I can't seem to work out the exact conditions that it works, and
seems
considering where the exception occured, i bet this is not a java
security exception (it already passed the security test at that point
and is inside the priviledged code, moreover this is an IOException not
a SecurityException you get). However, there is a bad code inside
UNIXProcess:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello List,
is someone here, who like to share his experience in registering mbeans
via M-Let Service in tomcat catalina? is it possible at all? if yes, how
does it work?
I`m looking for a way to register a third party RMI connector within tomcat.
Have you tried adding following to your web app permissions in policy file
permission java.lang.RuntimePermission java.lang.Runtime;
-Sameer
Mark HB [EMAIL PROTECTED] wrote: Hi,
My apologies for the confusion, but my previous claim to have sorted
this problem out is now incorrect. It seems
There is no way to do this in tomcat. The alternative is the link you
provided
http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff671532e6e844bc
OR
Use JNDI to do the lookup. You'll do this via *|*env-entry in web.xml
Then this environment entry can be set in web.xml or
If apache is serving all the traffic - then tomcat doesn't need to
record any access logs. (Unless you need monitor how much load went to
each tomcat) Apache will have every request. If you combine the logs -
you would double count some of your requests.
-Tim
Frank Niedermann wrote:
Hello,
If I am reading this correctly, an easier solution would be to create
an index.jsp at the root level that forwards to /jsp/index.jsp
-Tim
Romain Quilici wrote:
Hi all,
this question seems simple, but I did not figure out how to answer it.
In my web.xml I have defined a default servlet. So it
I agree with David. This does not seem to be a SecurityManager problem.
Does your code run properly as a normal executable program (with main())?
Sameer Acharya wrote:
Have you tried adding following to your web app permissions in policy file
permission java.lang.RuntimePermission
HI,
It all runs fine as a standalone, and when I print the command that I am
running using exec to the screen and then run it myself, it works fine.
I had this servlet deployed on another machine, and I never had this
problem.
It is very odd, as sometimes it works and the executable is executed
Tim's solution is the easiest, but allow me to explain why your application
is behaving that way.
By specifying the following
url-pattern//url-pattern
You are saying that all requests that come into your application are to be
forwarded to the servlet. Thus when you redirect to
Mark-
My experience has been radically different than Davids
Specifically its been my experience that if you DONT have Security permissions
specifically configured for that jar then the classes will not run
here is an example from catalina.policy
grant codeBase
Hi Atomi,
try to take a look to the following links
http://www.hyperic.com/
http://www.hyperic.com/products/sigar.html
Or, if you could use JMX: http://java.sun.com/products/JavaManagement/
Regards,
Michele
atomi wrote:
I have a single servlet application and my server jumps up to 99+% cpu
Specifically its been my experience that if you DONT have Security
permissions specifically configured for that jar then the classes will
not run
Is it applicable to only to jars or to any webapp deployed in Tomcat as
such. I've managed to use exec() successfully on some programs
successfully
I would just make a thread dump and look which thread is hanging in a
infinite loop and causes the cpu usage.
regards
leon
p.s. to create a stack-trace - kill -QUIT tomcat_pid
On 9/12/06, Michele Mazzucco [EMAIL PROTECTED] wrote:
Hi Atomi,
try to take a look to the following links
if you're front ending with Apache.. then Apache .htaccess could be configured
against it..
If you exec those same commands with root access and it works its definitely a
permission problem with the previous username
Good Point
M-
Hello
all,
I am reading a lot
on JVM garbage collection tuning but i cant figure out what the best situation
is for me. I run a very large application without any problems except one
remarks.
I see (i am using
lambda probe) that my old generation memory is growing until the 70% (is
From: MW Janssen [mailto:[EMAIL PROTECTED]
Subject: question about PS Old Gen memoy
How can I avoid (the best solution) that the old gen is
filling until 70% of the total memory allocation by the jvm
and what causes this?
Why do you think this is a problem? This is how the HotSpot GC
hi i red the complete conversation .. Actually i have also the same
problem with javascript files ..
Is it possible to load the javascript files only if it is modified ...
Please help me ..I willbe greatful to you ..
with regards
sathiya
Martin Gainty wrote:
Good
He Chuck,
Because I think the old gen is still filled also the 70% is reached. The jvm
will do a garbage collect to free up memory for the old gen so i think there
will be more and more garbage collections to achieve the 70%. I think there
also a lot of unused stuff in the old gen (otherwise a
From: MW Janssen [mailto:[EMAIL PROTECTED]
Subject: RE: question about PS Old Gen memoy
Because I think the old gen is still filled also the 70%
is reached.
So what? Again, that's how it's designed to work. Collecting the young
gen is much cheaper than doing the old gen, so there are
No i have no evidence...i was only guessing. So no need to do anything and
not to worry that I ran out of memory..thats what you saying..right?
And a full GC is only done by the JVM as its really needed? and in this case
it isnt you say..am i right?
thxfor your quick response!
Regards,
On 9/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'd like to set up several developers with their own development
environments (tomcat, and their apps) on the app server.
I'm not sure why this seems difficult, but maybe I don't understand
fully what you want to do :-) In any case --
On 9/11/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:
From: Leonel [mailto:[EMAIL PROTECTED]
Subject: Re: connection pooling question (posted correctly)
And the filename for the ROOT app ( / ) would beROOT.xml ?
Yes, if you're putting your Context descriptors in the
The easiest way would be to make a filter that decides what to do. It
would intercept every web request and can then forward them as appropriate.
Jim
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe,
Hi,
I noticed that my context definition file
(conf/Catalina/localhost/webapp.xml) is getting deleted over war file
redeploy.
Is there a way to prevent tomcat from deleting it?
regards
Leon
-
To start a new topic, e-mail:
From: MW Janssen [mailto:[EMAIL PROTECTED]
Subject: RE: question about PS Old Gen memoy
So no need to do anything and not to worry that I ran out
of memory..thats what you saying..right?
And a full GC is only done by the JVM as its really needed?
Correct on both accounts (with
Hi:
I was having a look at the bugzilla, and chanced across this post
http://issues.apache.org/bugzilla/show_bug.cgi?id=7013
I'm curious to know how one could enter a non-ISO8859-1 character in
the request URL.
An pointers to articles on the Internet would be appreciated.
Thanks in advance.
How are you redeploying it? If you are deploying with a *.war and the
Tomcat manager application (not sure about auto deploy and other clients),
then you can place your information in your context.xml file under your
/webappname/META-INF/ directory. Then when the war is deployed, the
Hi all,
what kind of connections does Tomcat use for JMX monitoring? If it is
RMI, where does the RMI registry run, on port 1099?
Thanks,
Michele
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail:
thank you marc.
so I place it under META-INF and name it context.xml?
The content is the same, right?
I'm using autodeploy, by simply copying the new .WAR file in the
webapps directory (its only for testing though).
thanx
leon
On 9/12/06, Marc Farrow [EMAIL PROTECTED] wrote:
How are you
Yes. The exact same contents that you want to appear in your webapp.xmlfile.
On 9/12/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
thank you marc.
so I place it under META-INF and name it context.xml?
The content is the same, right?
I'm using autodeploy, by simply copying the new .WAR file
I'm getting close. I've download
the most recent version, using the CGI you sent me, but now when I execute
it, it complains becuase I'm running in a JAVA 1.4 environment, and I need
the compatability package, as you noted.
I'm at the apache site for Tomcat, and
I can't find it. Can you give me
From: Kevin Mullin [mailto:[EMAIL PROTECTED]
Subject: RE: Where is bootstrap.jar
I'm running in a JAVA 1.4 environment, and I need the
compatability package, as you noted.
I'm at the apache site for Tomcat, and I can't find it.
Can you give me a URL to it.
It's the one cleverly
Hi there,
I just installed NetBeans 5 wich has Tomcat 5 bundled.
I can start Tomcat without any trouble, but if I stop it, becomes really
slow getting this error message on the screen:
12-set-2006 21.43.03 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on
Does anybody develop on Tomcat as a limited user in Windows? I was
wondering if there are any suggested configurations or behaviors. It
seems the most convenient would be to run Tomcat as a service and run
the Services console as an administrator when it needs to be restarted.
I can specify URIEncoding=UTF-8 in Tomcat's connector settings within the
server.xml file. Now, my Tomcat server correctly reads the URL GET
parameters correctly...sending out Hello, José! or Hello, 田中! as
expected.
However, there's still a problem.
What if I want to POST some non-ASCII data,
that's what we do...we have it as a service, under an admin acct of the Win2K
box it's on.
-Original Message-
From: Gurganus, Brant L [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 3:44 PM
To: users@tomcat.apache.org
Subject: developing at limited user
Does anybody develop
Use a servlet filter, like:
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
throws IOException, ServletException
{
logger.debug(set request character encoding to + encoding);
(tomcat 5.x)
Why are 'context.xml' and 'web.xml' bits stored in different files? What
is the difference in their scope?
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Marc Farrow wrote:
Yes. The exact same contents that you want to appear in your
webapp.xmlfile.
And you may ommit path attribute if you place context.xml under
META-INF directory. Path will be guessed from war filename.
--
Mikolaj Rydzewski [EMAIL PROTECTED]
From: Jon Yeargers [mailto:[EMAIL PROTECTED]
Subject: web.xml vs context.xml - diff?
(tomcat 5.x)
Why are 'context.xml' and 'web.xml' bits stored in different
files? What is the difference in their scope?
The web.xml location and content are defined by the servlet spec (which
you
Hi,
We used to use tomcat4 and start using tomcat5(start using different DB also).
Basically I have copied server.xml (tomcat4) to server.xml(tomcat5) with
minimal
changes. Did same thing for web.xml files also.
Other two webapps work fine so far, but I am having problem to get running
third
one
At last. yes it was a little tongue in cheek, as I fell for that scam once
and never again. I paid 20 bucks for a PDF telling me to download free
software. Never again I tell you. I am wise now.
On 13/09/06, Cosio, Raul [EMAIL PROTECTED] wrote:
Use DJ Java decompiler, free to try...
Does anybody know how to find the list of SSL ciphers that TC will use
(I'm running on Linux)? There's a Connector param to set the ciphers,
but I don't know where to find the list of available ciphers that I have.
Thanks,
David
Sriram Narayanan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi:
I was having a look at the bugzilla, and chanced across this post
http://issues.apache.org/bugzilla/show_bug.cgi?id=7013
I'm curious to know how one could enter a non-ISO8859-1 character in
the request URL.
Romain Quilici [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
this question seems simple, but I did not figure out how to answer it.
In my web.xml I have defined a default servlet. So it can handle requests
that does not match other servlets pattern.
servlet-mapping
Hello all,
Is there any way to configure the certificate chain depth verification for
SSL connectors in Tomcat 5.5?
I need something like the SSLVerifyDepth option for apache + openssl.
Thanks,
Edré.
Hi,
I have a strange problem. I am not able to access my servlet from internet
although everything works very well when i access mywebapp using
http://localhost/mywebapp/Servletx
I am running a webapp which has a servlet. When I try to run my webapp, all the
JSPs work good but the servlet is
53 matches
Mail list logo