thomas Fuchs

+ Follow
since Apr 18, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by thomas Fuchs

figured it out;

tomcat connects to oracle in dedicated mode.
with connection pooling implemented in tomcat and with ~5 front end servers we get about 5*100 = 500
dedicated processes in oracle specifically for tomcat.

majority are sleeping since the 'connection' remains open until tomcat is shut down.
apparently sleeping processes consume a minimal amount of resources and add to the overall db server load ...

and our hardware just sucks. Anyways this might be useful for someone else down the line ...
9 years ago

I am running tomcat 5.5 to Oracle 10G.

We just experienced db crash & loss of data, etc...

Our problem is that once our dba got the system back up,
everything is slow & he is blaming it on tomcat & java db pooling.

what we are seeing in oracle is that tomcat has about
~200-300 sleeping processes in oracle & ~50-100 active ones.

This is taxing our system as cpu is 90+ & load is 100+,
of course tomcat isn't the only thing hitting the db ...

my question is that given our large client base this does not seem
unusual. what do 'sleeping' processes (these are tomcat processes)
in oracle mean? is it oracle's way of caching requests ...

we use db pooling:
with max 60 connections & this is never exceeded & has worked in the past.
all of our conn are closed properly, code is cleaned, etc ...

but our dba is blaming the dev team saying its tomcat/java where as i
see it as our hardware just sucks plus we had 3 db servers now we are
down to 2.

anyways is this unusually large amount of 'sleeping' processes within
oracle ? should we use a better pooling mechanism.

any thoughts much appreciated

9 years ago

your right but i am not using the 'path' to specify the path.

In individual files (with a ".xml" extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml extension) will be used as the context path. Multi-level context paths may be defined using #, e.g. foo#bar.xml for a context path of /foo/bar. The default web application may be defined by using a file called ROOT.xml.

From URL:

so if i understand correctly the name of the xml file is used as the context path: my xml file is called 'aaa#bbb.xml' and the war file ends up being expanded into: tomcat_home\webapps\aaa#bbb\...

so the above statement from tomcat docs says using the '#' will provide multi-level context paths ....

thanks for the response; note this did work in tomcat 5.5 but i just upgraded our servers to tomcat 6 and it is not working ...
10 years ago

I am using Tomcat 6.0. I need to deploy a war file that resides in an external directory.
But I need to deploy it into a custom path in the webapp folder in tomcat.

I am using a context file that is located in:

with the contents of the xml file:

<Context path="/aaa/bbb" docBase="D:\deployments\custom.war" reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="llservlet." suffix=".txt" timestamp="true"/>

The end result i am looking for is that custom.war is expanded into: tomcat\webapp\aaa\bbb

but i end up with: tomcat\webapp\aaa#bbb

The tomcat docs specify that the '#' is used in the xml file name to create a context path.
Not sure what i am doing wrong, any help much appreciated,
thank you
10 years ago
Hi all

i am looking for help into 2 things;
how to redirect users to a logout page automatically when the session expires,
(i have a lot of jsp/html pages in this web-app, can this be done through tomcat maybe aka globally)
when a user clicks on a link in a page but his session has expired how to
redirect them to the login page and back again to the original requested link

any help or pointing me in the right direction is greatly appreciated.
11 years ago

that is what i was looking for;
yea your right about the subject ...
11 years ago

hi all,

i've got a simple web-app that drops into tomcat (using tomcat 5 & 6).

what i am trying to do is when the web-app or war file is dropped into
tomcat and is automatically deployed/exploded i want a particular class
to be initialized or object to be instantiated.

anyone know how to do this?
will i need to use spring ....

thanks for any help
11 years ago

I used the eclipse tool to generate the server side code from a wsdl file. (basically generate the server side stubs)

My question is I want to subclass or override some methods in a class that was generated from the wsdl file. How can i do this so that a client will actually be referred to my overloaded class rather than the server side stub ?

I know i can just add the code to the generated stub but for those who know .net you can create a class that derives from a generated class & then add basically an annotation [webmethod] ...

so i'm not sure what the proper way is in java,
any advice is helpful
12 years ago
hey all,

Is it possible to make java/axis based webservice calls from javaScript?
If so can anyone point me in the right direction for a few examples ...

thanks for any help

Anyone know how I can forward/redirect all outgoing http traffic on any port (like 80/8080/ect...) to another port (in my case local port) using java ?

In other words, taking a link : http://localhost:80/something
and forwarding it to : http://xyz:9090/something


i'm new to uddi
just wondering if anyone had sample code
or know where to find examples of
how to perform java inquiries/publishes to systinet uddi registry ...

13 years ago

Wondering if anyone has came across a way to: monitor/watch
activity on a port (i.e tomcat's 8080) in java.

In other words I don't want to interfere with the traffic; so I'm not
looking to implement a proxy or port forwarding solution.

Some thing akin to ethereal network analyzer but in java ...
Thanks very much
this will work great
much appreciated

Does anyone know of how to calculate/figure out
the number of hops to a server
using java ?

for example: I open up a socket to 'x' from 'y'
how many hops is it from x to y ...


new to webservices,
just looking for advice on
how to create proxy server for axis based web services.

I want to use this proxy server to collect statistics
on web service calls ...

thanks, any help is much appreciated
13 years ago