1) Reduce the number of applications you load during start-up.
2) Remove unwanted jars from WEB-INF/lib and also from
/common/lib
3) Also remove wherever the jars seem to be unnecessary.
--
View this message in context:
http://www.nabble.com/Tomcat-memory-usage-3.3-vs-5.5-t1472557.html#a3982404
Hello all,
We run tomcat inside an embedded system and we are planning to upgrade the
tomcat version from 3.3.1 to 5.5.16. We noticed that the memory footprint of
a barebones tomcat 5.5 installation is 44 MB. Plain and simple Tomcat 3.3
used to run with 25 MB. We have limited memory on our sys
Marc, thanks - but not sure what you mean by "connections retrieved from the
pool.". If I issue an MySQL "SHOW PROCESSLIST" it still just shows two
connections for the datasource user, not the 10 I would expect given a value
of 10 for minIdle.
-Original Message-
From: Marc Farrow [mailto:[
thanks for the recap.
On 4/18/06, Scott Smith <[EMAIL PROTECTED]> wrote:
>
> OK. Everything is now working.
>
> Things I learned:
> 1. The "Info" message concerning servlet.jar is really an error
> message. Things simply don't work if you have a servlet.jar,
> servlet-api.jar or jsp-api.jar fil
This also possibly could be related to the use of the connections retrieved
from the pool.
On 4/18/06, Richard Mixon <[EMAIL PROTECTED]> wrote:
>
> I'm (still) trying to figure out a problem with our connection pool
> locking
> up - all threads waiting for a connection from the DBCP pool, such as
I'm trying to get tomcat to accept remote_user from apache via mod_jk,
but still use an existing role-based realm implementation.
If necessary, I am looking into modifying Tomcat to do this, but I'd
really rather not reinvent this wheel if a) it's not necessary or b) if
someone out there has a
OK. Everything is now working.
Things I learned:
1. The "Info" message concerning servlet.jar is really an error
message. Things simply don't work if you have a servlet.jar,
servlet-api.jar or jsp-api.jar file in your WEB-INF/lib directory. This
was most of my problem.
2. The docBase is not r
I'm (still) trying to figure out a problem with our connection pool locking
up - all threads waiting for a connection from the DBCP pool, such as
following from a thread dump:
...
"Thread-28" daemon prio=1 tid=0xac9dedc8 nid=0x5256 waiting for monitor
entry [0xb0607000..0xb0608580]
at
org.apache
Mark -
Thanks for the pointers. I ended up picking up code from the
Tomcat source of org.apache.catalina.ant.AbstractTask and using that to do
Basic Authentication. I've got it working now.
Garey Mills
Library Systems Office
UC Berkeley
The brain is not where you think
On Tue, 18 Apr
Hello Mark on Tomcat Users.
1. Tomcat version is 5.5.9
2. Content of web.xml in
(public_html/WEB-INF/web.xml within 'nbfcus' homedir) :
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
webmaster
[EMAIL PROTECTED]
The EMAIL address of the administrator to whom questions
and com
Garey Mills wrote:
> Mark -
>
> I have looked at the manager app how-to, and it doesn't describe
> how connect from a script. I have this
>
>
> private static String stop =
> "http://myhost:8080/manager/stop?path=/
Mark -
I have looked at the manager app how-to, and it doesn't describe
how connect from a script. I have this
private static String stop =
"http://myhost:8080/manager/stop?path=/myapp";;
public static void
Marc Farrow wrote:
> You have to use the webdav application provide from tomcat. Check under
> $tomcat_home/webapps/webdav/web.xml. there is a line commented out that
> states some property of read-only = false. by default it is read-only and
> you have to manually turn it on.
What on earth has
You have to use the webdav application provide from tomcat. Check under
$tomcat_home/webapps/webdav/web.xml. there is a line commented out that
states some property of read-only = false. by default it is read-only and
you have to manually turn it on.
On 4/18/06, Garey Mills <[EMAIL PROTECTED]
Hello -
I want to stop and start a context from a Java program running as
a cron job. I have tried
http://:/manager/stop?
username=&
password=&
path=/
(without the carriage returns, of course). This yields me a 401. Reading
the manager app documentation,
Shaban Ghumri wrote:
> Hi,
> I would like to know based on your experience with TomCat, if there are
> tools that I can use to debug a potential memory leak on servlet running on
> TomCat 3.2?
Try Googling for Java Profiler. There are a number of tools that could
help with this. My personal favour
Hi,
I would like to know based on your experience with TomCat, if there are
tools that I can use to debug a potential memory leak on servlet running on
TomCat 3.2?
Thanks in advance!
Shaban Ghumri
Did you use host name in your tomcat configure file?
-Original Message-
From: Carl Crawford [mailto:[EMAIL PROTECTED]
Sent: April 18, 2006 12:59 PM
To: users@tomcat.apache.org
Subject: IP Masking
System:
Tomcat 4.1
Using Tomcats HTTP server
Windows 2003 Server
Question:
Tomcat is showin
It appears your redirect page is responsible for that. If. I replace
the IP with your domain name, everything appears to work and the domain
name is retained when links are followed. How is your redirect code
composing the URL?
--David
Carl Crawford wrote:
System:
Tomcat 4.1
Using Tomcats
this is your own fault,
http://www.siascend.com/index.html
content="0;URL=http://84.40.31.164/Ascend/";>
as you can see, you are redirecting the browser to the IP address,
tomcat doesn't do that for you
Filip
Carl Crawford wrote:
System:
Tomcat 4.
System:
Tomcat 4.1
Using Tomcats HTTP server
Windows 2003 Server
Question:
Tomcat is showing our IP address instead of our URL. If you type in
www.siascend.com and load the page, the url changes to 84.40.31.164.
Is there a setting in Tomcat to mask the IP with our url?
Thanks,
Carl Crawford
Dir
Thanks,
But I with the rewrite I can solve the problem, as you can see on the othe
other posts.
But I wanted to go one step forward and that is what I can not do, though
I've read it is possible and simple.
I want to omit the webapp name from the URL so that instead of accessing:
http://myserver/
Sorry,
Did not work
must be doing something else wrong
--
View this message in context:
http://www.nabble.com/Relative-Link-Question-t1452173.html#a3971693
Sent from the Tomcat - User forum at Nabble.com.
-
To unsubscribe, e-
Have you tried to set your appBase to D:/Tomcat 5.5/webapps/netprof?
sometimes back-slashes cause problems.
On 4/18/06, biai <[EMAIL PROTECTED]> wrote:
>
>
> Hi again,
> Thank you for all the tips. Some resolved my problems, but the appBase
> still
> gives me an error.
> I've read a lot about it b
Hi again,
Thank you for all the tips. Some resolved my problems, but the appBase still
gives me an error.
I've read a lot about it but still does not work. In this latest version of
testing I only have one Host and it looks like the following:
www3novo.netprof.pt
Lol, ok ok, it works. My stupid fault. The reason my JSP does not output
the session ID is because the JSP on tomcat2 does not feature the output
statement - I added that to tomcat1's copy only
The shame.
Thanks to all for the help.
-Original Message-
From: Allistair Crossley [mailto:[E
Hi,
Thanks for the suggestions, that has led to a solution I think.
I used the EAL valve to log inbound and outbound cookies as you
suggested.
Started both Tomcats, and put a whole bunch of requests in, including
new browsers to generate new sessions. The result was that I spotted I
made a m
Hi
I use tomcat 5.0.18 for a web app. The url should be the domain name but
it become the IP wherever you navigate.
My hosts in the server.xml are correctly configured i guess because i
use the same conf for a other server (same tomcat version).
I use the james server to receive and send mail
I thing that is normal!
Currently the APR Connector not implement a shrinking thread pool!
The trick is: Implementation is easier and for a high load szenario
the APR use a pooler buffer instead a a lot of new thread
like the normal Java based connectors.
s. APR Connector documentation or be
domain: you don't need the domain attribute. Domai has the following
purpose: Once you start replicating sessions between tomcats and you
build up a huge group of tomcat instances and break it up into smaller
groups which replicate, then you can use domain to tell lb, between
which tomcat instance
Hi,
I m stucked in a security authentication/authorization issue, which I hope
you have some advice for me.
In simple words, I want to use the Web container security (for
authorization) together with my own JAAS implementation (for
authentication).
How to achieve this ?
I don't want to use the
When I run Tomcat 5.5 with APR the min/maxSpareThread attributes
don't appear to be working. maxThreads works fine however. Here's
the details:
Versions:
Tomcat 5.5.16
APR 1.2.6
Native Connector 1.1.2
Sun's JDK 1.5.0_06
RedHat AS3
With APR:
server.xml:
address="10.0.111.47"
Edgar, Reinhard and Rainer and Tim,
I forgot to set jvmRoute in my server.xml ;)
But seriously .. many many thanks for your time. I have set the domain
property for each worker, and matched them to jvmRoute on the Engine
element.
This has resolved the issue where Tomcat 1 generates new session i
Hi,
First, you must understand in form based login, access to the form
should never be done directly, that's because the container can accept a
form login only if before the user tried to access an area requiring
authentification. In simple terms, you see the form because the
container has decided
This is almost always "I forgot to set jvmRoute in my server.xml".
-Original Message-
From: Edgar Alves [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 9:36 AM
To: Tomcat Users List
Subject: Re: JK Sticky Session Handling with Load Balancing
Hi again,
When using two workers lik
Thanks a lot. You guys are great. I found this tutorial on how to install AND
connect tomcat to apache so here it is just in case it might help someone else:
http://agiletesting.blogspot.com/2005/10/configuring-apache-2-and-tomcat-55.html
> From: [EMAIL PROTECTED]> To: users@tomcat.apache.or
Hi Graham,
I was also attempting this about 2 months ago with Active Directory and
Tomcat 5.5.9. I got everything working about 70%. The problem that I ran
into was that I did not setup any kind of connection pooling on the AD side
of things. I have no control over the Windows side of the hou
Please, has anybody use 'tinyca' to generate certificates for Tomcat 5?I did
the configuration but browser complains that 'Mozila and localhost cannot
communicate securely because they have no common encryption algorithms'. Using
the keytool utility however, https works fine.
Your help would be
Hi again,
When using two workers like that you must set the domain property for
each of them for having mod_jk send the requests to the appropriate
Tomcat instance.
Add the following two lines to your workers properties file:
worker.tomcat1.domain=tomcat1
worker.tomcat2.domain=tomcat2
Hi,
please do not mix up the tomcat cluster and apache load balancing.
Sticky session means that tomcat2 is not used at all in your configuration.
Only tomcat1, which created the cookie.
When tomcat2 creates no session, the browser gets none and the lb-worker
cannot work also. Maybe your apps/c
Hi,
1) If you want to use a mod_jk lb worker with sticky sessions, you need
three ingrediants:
a) configured lb worker with sticky_session (default is 1=on) and a
corresponding JkMount to this lb worker
b) tomcat instances with unique jvmRoute settings in server.xml (the
jvmRoute gives eac
Anybody know about the problem I have as described in below email?
Thanks,
Amol
-Original Message-
From: Amol Upadhye [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 13, 2006 2:25 PM
To: users@tomcat.apache.org
Subject: Post request to 'j_security_check' after tomcat restart or sessio n
ask in an ubuntu-related forum for help on permanently disabling your apache
server, or, connect your apache server to tomcat with mod_jk.
If you're unsure of how to do the first, you probably will feel more pain
trying the second (so do that first thing).
> -Original Message-
> From
Hi Edgar,
Yep I just noticed that too :)) However, correcting this configuration
(to the below) does nothing to resolve the issue, because the lb worker
type by default has sticky_session=1. I set it explicitly anyway as
below.
However, I have noticed that in fact Tomcat 2 is not returning
JSESSI
Hi there,
You're setting the sticky_session property for each worker. That's not
how it works.
That property is valid only for the loadbalancer and it takes a
boolean value. Set it to 'True' or '1' to get the desired effect.
Read http://tomcat.apache.org/connectors-doc/config/workers.html for
I would say no. This is an issue for build management, not tomcat. May I
suggest you put together a short script that explodes the war, replaces
the web.xml, and then re-zips the webapp back to a war. The whole thing
could easily be done with a shell script or batch file - don't even
need ant
The easiest way is to rely on you network admins to ensure no one is
eavesdropping. But sometimes that isn't possible.
The next easiest way to use an ssh tunnel between tomcat and apache. You need
google for the specifics. But from your apache servers - if you have one
tomcat - you'd probably
No. But if I were you - I would write an Ant task which
1) unpacked the war
2) copied the original web.xml to a backup name (for reference)
3) injected the security constraint
4) repackage the war
Or you can create a Valve which does the additional constraints.
-Tim
Rolf Schumacher wrote:
Dea
IIRC, its an IE setting.
It has to do with tomcat probably sending a no-cache (like) header while in
HTTPS.
HTTPS + nocache + IE == weird issues. I can't recall the resolution. But
google searching: https Internet explorer download will probably get you int
he right directions.
There are a
Hi,
I have setup 2 Tomcats on the same machine fronted by IIS, and used a
sticky_session=1 JK (1.2.15) load-balanced setup (as printed at the foot
of this email)
I setup a JSP on both Tomcats that outputs the session ID.
With only 1 Tomcat started, making requests to the JSP results in the
same
http://marc.theaimsgroup.com/?l=tomcat-user&m=113980330229468&w=2
(the short answer is basically you don't use Tomcat -- you use networking
infrastructure)
Tim
-Original Message-
From: lmk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 6:08 AM
To: users@tomcat.apache.org
Subjec
Hi;
how to secure communication between apache web server and servlet
engine..??
thanks
--
View this message in context:
http://www.nabble.com/AJP13-and-Mod-jk-security-t1467202.html#a3965323
Sent from the Tomcat - User forum at Nabble.com.
--
Hi Manivannan,
> 'unclosed sockets' - some client application interacting with your tomcat
> forgets to close the connection. (like
browsers etc) . Or the tomcat doesnt close connection to the database. So, this
unclosed connections results in 'unclosed
sockets'
If 'unclosed sockets' was a ca
Dear long time Tomcat operators,
I get new versions of a war file very often.
Due to authorization constrains I have to place
some extra security-constraints clauses into it
- every time I deploy a new version.
Is there a way to tell Tomcat to get the web.xml
from a different place than WEB-INF
Hi!
I have a problem downloading files threw my webapp using Internet
Explorer.
The application has a resources directory where i have som large files.
When I mount the directory in mod_jk to ensure only users logged in in
tomcat can access it (add the line "JkMount /mywebapp/resources/* ajp13
55 matches
Mail list logo