Hello everybody.
How can I increase the memory Tomcat/Java is using?
I tried setting CATALINA_OPTS with -server -Xms256m -Xmx512m
but runtime.totalMemory always seems to return a value around 60MB.
And there are some operations (exporting several thousand database
records to an Excel file)
These settings are stored in the r egistry if you are running Tomcat
as windows service. Usually you have a small applet installed that
allows you to edit the setttings. If do not see the applet, try to
execute
Tomcat\bin\tomcat5w.exe //ES//TomcatServiceName
where TomcatServiceName is your
Thanks a lot for your reply.
I set the values directly in my registry, restarted Tomcat and voilá:
runtime.totalMemory now gives the increased -Xms value after startup.
With kind regards,
Harald Henkel
Jost Richstein schrieb:
These settings are stored in the r egistry if you are running
HI!!
Just solved.
I was using tomcat 5.5.0.
I was looking at sources of 5.5.16.
I suppose that the authenticate method of 5.5.0 doesn't use getPassord
method.
I tried it in 5.5.16 and everything works fine
Thanks for attention
Alessandro
On 3/24/06, Alessandro Colantoni [EMAIL PROTECTED] wrote:
I solved the last problem passing to tomcat 5.5.16 .
At the end everything work as i desired (well i didn't do many tests so
that's what I hope).
Thanks your help and your patience
Alessandro
On 3/24/06, Alessandro Colantoni [EMAIL PROTECTED] wrote:
Hi!
One day after i understood what you
Hi List,
I have a specific question about apache _expression matching.
I have a apache tomcat server setup . While tuning tomcat i needed to
achieve some tweaking to the apache _expression matching , or atleast that i
felt .
The site have all incoming urls (www.subdomain.domain.com type) are
Hello,
be careful using filesystem directly. This piece of code will not work
if the unpackWARs=no. Use
getServletContext().getResource(/WEB-INF/jsp/test.jsp) == null
instead. This will work for both options: for unpacked WARs and
packed WARs.
PETR
On 3/23/06, Rapthor [EMAIL PROTECTED] wrote:
Hi,
Environment:
OS: Solaris 10 on client and server
Java: java full version 1.5.0_06-b04
Tomcat: 5.5.15
I'm trying make one of my servlets act as an RMI client with an RMI server
running on a different host.
I have a problem though and I can't seem to make much progress, so maybe
someone can
Hi All,
I've failed miserably in configuring a DataSourceRealm for a web
application. I've scoured Google (50/50), mailing list archives (ask a
friend), and not to much avail. I've also liased with the Tomcat 5.5
documentation as far as I can tell.
So I turn to ask the audience ;)
I am using
Gary Pennington wrote:
If I invoke Tomcat with the following additional options, I can make my
servlet/RMI client deploy:
-Djava.rmi.server.codebase=http://webserver/builds2/garypen/jars/jscmc.jar
http://webserver/builds2/garypen/jars/jscma.jar;
The application executes fine until it tries
Hello all,
can some one tell me how to get value of select if it is multipal
selected.
like this
select name=txtrole size=2 multiple=multiple
--
Cup of Java + Suger of XML = Secure WebApp
Yes, quite correct on your statement regarding using Application as the
definition. The essence of what we are looking for is a similar behavior
with Tomcat. Our over arching goal is to minimize or eliminate the need to
have jars that are to be shared by more than one applicaiton (WAR) be copied
Hi
use
request.getParameterValues(String paramName)
HTH
Vinu
Prashant Saraf wrote:
Hello all,
can some one tell me how to get value of select if it is multipal
selected.
like this
select name=txtrole size=2 multiple=multiple
--
Cup of Java + Suger of XML = Secure WebApp
--
On Thu, 2006-03-23 at 20:51 +, Nic Daniau wrote:
You may need to reconfigure the service. Have a look to my post from a few
min ago on *running two instances of tomcat*
you can also update the service using e.g.
%CATALINA_HOME%\bin\tomcat5.exe //US//Tomcat5 --Description My updated
On Fri, 2006-03-24 at 13:38 +, Nic Daniau wrote:
I wouldn't think so, these options are called when the service is
launched so you would have to restart the service for this to be
picked up.
Right, I understand that I'll have to restart the service. But is that
the way to get the service
On Fri, 2006-03-24 at 13:55 +, Nic Daniau wrote:
Not sure, TFM is a bit vague on this, it does not talk of the windows
service. This must be one of the options, but which one?... StartMode?
JvmOptions?
I've never really spent a lot of time on the security manager, but I'm
definitively
From: David Delbecq [mailto:[EMAIL PROTECTED]
Subject: Re: Increasing Tomcat/Java memory
4) More funny, a java.lang.OutOfMemoryError can also occur
when you run out of process threads
An OOME is really a catch-all for exhaustion of any system resource.
One other common cause is running out
On Fri, 2006-03-24 at 08:58 -0500, Ryan Daly wrote:
I have an opportunity to take the site down in a few minutes. I'll
quickly try setting that and post what I find.
No good.
If anyone comes across the proper options to do this, please post it to
the list.
Thanks.
Hi people,
I have two web applications (appA and appB) running on Tomcat 5.0.28. appA
is a single signon web application in which the user is automatically
authenticated against the domain using NTLM. From this application the user
clicks on a link in order to enter to appB. Today I came across
I'm not sure about Windows services specifically, but you can start the
JVM with a security manager generically by using the
-Djava.security.manager and -Djava.security.policy=YOUR POLICY FILE
URL java startup options. You can append these to $JAVA_OPTS on Unix
systems to get a security manager
Hello,
Von: Fran Varin [EMAIL PROTECTED]
Yes, quite correct on your statement regarding using Application as the
definition. The essence of what we are looking for is a similar behavior
with Tomcat. Our over arching goal is to minimize or eliminate the need
to have jars that are to be shared
Is there any way to control the client certificate authentication?
That is I would like to have the certs in some other repository than
tomcat's default(java keystore).
And I need the users to authenticate with their certs.
So is there a way to filter a connector?
Or any other way to get the
Is there any way to control the client certificate authentication?
That is I would like to have the certs in some other repository than
tomcat's default(java keystore).
And I need the users to authenticate with their certs.
So is there a way to filter a connector?
Or any other way to get the cert
On Fri, Mar 24, 2006 at 01:10:40PM +0100, Markus Sch?nhaber wrote:
Gary Pennington wrote:
If I invoke Tomcat with the following additional options, I can make my
servlet/RMI client deploy:
-Djava.rmi.server.codebase=http://webserver/builds2/garypen/jars/jscmc.jar
On Fri, 2006-03-24 at 08:27 -0600, Benjamin Armintor wrote:
I'm not sure about Windows services specifically, but you can start the
JVM with a security manager generically by using the
-Djava.security.manager and -Djava.security.policy=YOUR POLICY FILE
URL java startup options. You can append
Yes indeed and its quite easy!
If you're running it as a service (either installed the exe or ran the
service install ... from the zip version) you will have a
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters] in your registry (where Tomcat5 is the name
given
Gary Pennington wrote:
On Fri, Mar 24, 2006 at 01:10:40PM +0100, Markus Schönhaber wrote:
I don't have much experience regarding RMI so I won't be of much help if
it's a RMI-specific problem. But two points come to my mind:
1. You did make sure everything works as expected if you start
Oups in case you're running a script to start Tomcat you may use for
instance (taken from my TC4 script):
set JAVA_HOME=C:\App\Java\jdk1.4.2_05
set CATALINA_HOME=C:\App\Tomcat4
set CATALINA_OPTS=-server -Xms512m -Xmx1024m -XX:NewSize=64m
-XX:MaxNewSize=64m -XX:MaxPermSize=128m -Xss128k
Hello Dave,
Von: David Kerber [EMAIL PROTECTED]
I understand the arguments on both sides, but tend to prefer the ease of
maintenance of what you call the single point of change in
shared/lib. Is it possible to make this configurable, so both sides
can be happy? Or is that too complex?
As
From: Boris Unckel [mailto:[EMAIL PROTECTED]
Subject: Re: Classloader question
To the mailing-list: If you have an library which has not
the explicit recommendation to put it in common/shared lib
path (i.E. a special JDBC driver where the vendor recommends
one to put it into shared) what
Boris Unckel wrote:
Hello,
Von: Fran Varin [EMAIL PROTECTED]
Yes, quite correct on your statement regarding using Application as the
definition. The essence of what we are looking for is a similar behavior
with Tomcat. Our over arching goal is to minimize or eliminate the need
to have jars
Hi All,
Whilst I await *hopefully* a reply to my last post on why the data
source realm does not operate correctly, I am using the standard user
database that ships with TC to move on, but damn, I'm bloody stuck
again!
I would like to obtain a reference to the various role names that the
There might definetely be an easier way but I did just that:
i) installed the exe
ii) unzipped a number of Tomcat into other folders
iii) copied exe and dll into those folders
iv) modified ports for the zipped versions of server.xml and ran
service install ...
The original exe you can either
If I'm not using the apache HTTPD in front of tomcat, do I need the ajp
connector activated in the server.xml?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Von: Fran Varin [EMAIL PROTECTED]
This approach sounds promising...would you mind elaborating just a little
on
what you're thinking? I'm not sure I follow when you mention using a
symbolic link into WEB-INF/lib.
it would require UNIX or LINUX system. A simple symbolic link:
ln -s
no
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: 24 March 2006 15:43
To: Tomcat Users List
Subject: AJP connector required?
If I'm not using the apache HTTPD in front of tomcat, do I need the ajp
connector activated in the server.xml?
Dave
aah...now I understand the reason it sounded foreign to me. We are a Windows
shop so, I'm not sure we have the same capability.
--
View this message in context:
http://www.nabble.com/Classloader-question-t1332679.html#a3573581
Sent from the Tomcat - User forum at Nabble.com.
SHORTCUT!
Fran Varin wrote:
aah...now I understand the reason it sounded foreign to me. We are a Windows
shop so, I'm not sure we have the same capability.
--
View this message in context:
http://www.nabble.com/Classloader-question-t1332679.html#a3573581
Sent from the Tomcat - User forum at
The directive :
disabled - If set to True or 1 the worker will be disabled if member of load
balancer. This flag can be changed at runtime using status worker.
Can I change the disabled property at runtime and will the loadbalancer be
able to read this? I tried changing it in worker.properties
...as in Windows shortcut...I'll have to look into that possibility.
--
View this message in context:
http://www.nabble.com/Classloader-question-t1332679.html#a3573968
Sent from the Tomcat - User forum at Nabble.com.
-
To
Configuration:
- Tomcat (1) 5.0.27 in dmz
- Tomcat (2) 5.0.27 inside domain
- Using JayBird DB Driver
- IIS 6
- Interbase 7.5 DB server inside domain
Tomcat (1) is currently having some serious issues with pooled
connections to the db server. These applicaitons
I run cygwin (a linux like application/environment) on my windows box at
home. When I create a symbolic link in that system and look at it frm
the windows side of it, it IS a shortcut.
try itI think it may work, but I am not sure that tomcat will see it
as cygwin does. Curious.
Fran
I tend to agree with your postion. I'm not sure that Tomcat will see the
native Windows shortcut. I'll see if we can figure out how to do it. If you
have any ideas I'm all ears.
It sure would be nice if Tomcat had the ability to have the shared lib see
down the hierarchy or be able to put jars
Hi all:
This is third time I am posting the same question. I tried everything I
could, including re-installing Tomcat from scratch. But, the problem still
remains. Please help !!
I am using Tomcat 5.5.16 (stand-alone) with JDK 5.0 on Windows XP and trying
to setup virtual hosting (to start with
Hi,
this sounds like repackage would be a huge job.
If yes, I would suggest: learn ant
If not: You have to reload the apps anyway. So what do you achieve?
just my 2 cents.
R.
Am Freitag, 24. März 2006 16:19 schrieb Fran Varin:
Yes, that is the exact situation we are attempting to avoid in
Hello Nic, and Thomas,
Thank you for taking the time and give out the detailed instructions on how
to run two instances of tomcat 5.5 on windows. In the future we will most
likely to use a few windows boxes and your instructions will certainly be of
great value. Currently, our development
The beauty of our WAS solution is that we can hot deploy various pieces like
the jars without having to do anything with the WARs and since we do not
have the jars contained in each WAR it makes maintenance much simpler.
Depending on the application, this approach makes a lot of sense. We do use
Alexander Panzhin wrote:
Is there any way to control the client certificate authentication?
That is I would like to have the certs in some other repository than
tomcat's default(java keystore).
And I need the users to authenticate with their certs.
So is there a way to filter a connector?
Or
Thanks.
Allistair Crossley wrote:
no
-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: 24 March 2006 15:43
To: Tomcat Users List
Subject: AJP connector required?
If I'm not using the apache HTTPD in front of tomcat, do I need the ajp
connector activated in the
I'm trying to build mod_jk.so on an AIX 5.3 server. I compiled and installed
Apache 2.2.0. I run...
./configure --with-apxs=/usr/local/apache-2.2.0/bin/apxs
...but it fails with the error...
could not find /usr/local/apache-2.2.0/bin/apxs
configure: error: You must specify a valid --with-apxs
This doesn't answer your question, but is there a specific reason you
don't just user mod_proxy_ajp with Apache 2.2.0? You wouldn't have to
build mod_jk then.
,
Josh.
-Original Message-
From: Bernie Durfee [mailto:[EMAIL PROTECTED]
Sent: Friday, March 24, 2006 12:41 PM
To: Tomcat
Hello,
Fran Varin wrote:
The beauty of our WAS solution is that we can hot deploy various pieces like
the jars without having to do anything with the WARs and since we do not
have the jars contained in each WAR it makes maintenance much simpler.
Depending on the application, this approach makes
Hello
After posting this question to the Commons mailing list, I have been
advised to ask the tomcat folks.
I am using Commons FileUpload 1.1 to manage HTTP POST uploads with
Tomcat running as a JkMount'ed service of Apache
I am trying to analyze the strain on memory when many large
Hi,
I created my site in tomcat context /xxx/*
Now I want to bind this context to URL www.mysite.com/ in apache
How can I do this? Apache directive
JkMount /xxx/* ajp13
not working properly.
Thanks!
-
To unsubscribe, e-mail:
How to redirect system.out and system.err to a file to a specific
location and with a specific name ?
That's a parameter of the Tomcat launcher, or the service on Windows.
If you use the monitor (tomcat5w) you can configure this on one of the tabs.
or you can use tomcat5 //US//Tomcat5 --StdOutput ... --StdError ...
http://tomcat.apache.org/tomcat-5.5-doc/setup.html
On 24/03/06, Gilbert, Antoine
Hi, all,
Hopefully a pretty simple question:
I am attempting to deploy a warfile with an embedded
META-INF/context.xml. The contents of the context.xml file looks like this:
Context path=/idb debug=99 reloadable=true crossContext=false
override=true
...
/Context
The warfile is named
I'm looking for a way to duplicate the Apache BrowserMatch while only
running Tomcat and APR. I'd like the server to check which browser is
connecting and adjust some setting, like nokeepalive, base on that.
Does anyone know how to do this, I have been unable to find any leads?
Thanks
Paul Hamer wrote:
Hi Shankar and others,
I've filed it in Bugzilla... it has become Bug 39093.
The test case you provided made it very easy to check this and the bug
is not valid. The test case works fine for me with 5.5.15 and the
current HEAD. My environment is not identical but close
Trying to figure out how to change the context path for a WAR file install
in the webapps dir (Tomcat 5.5.16); for example:
webapps/foo-1.2.0.war
...is expanded into a folder of the same name (minus the .war). So far, so
good - this is as expected. However, the context path is now set to /foo-
The path is ignored when you deploy webapps this way. Tomcat will use
the basename of the war file as the context path. If you want to use
something different than that, you can create a context.xml and put in
under the virtual host's conf direction (e.g.
CATALINA_HOME/conf/Catalina/localhost). In
Since no one has tackled this yet, I will give you my take on it.
I think that you have an issue in using the same domain name on the virtual
host.
What you may want to do is try it with two different domain names.
test1.myserver1.com
test2.myserver2.com
See if you get the same results.
If
Hi!
I working with tomcat 5.5.9,
I have a domain name 'www.myproject.com http://www.myproject.com/ ' ,
an I can get into the server using it, but once I try to navigate
inside the application I need to use IP direction.
The domain is on the dns server.
I'm using jre1.5.0_04
http://logging.apache.org/log4j/docs/download.html
- Original Message -
From: Gilbert, Antoine [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, March 24, 2006 2:51 PM
Subject: system.out
How to redirect system.out and system.err to a file to a specific
Hi All,
I am in a bit of a fix following an upgrade to Java 5.0 update 6 and
Tomcat 5.5.16. One of the tasks that our application does is to send out
a serialized object to a servlet, which then populates it and sends it
back. The communication from the client side is maintained via a raw
socket
By default, the HTTP/1.1 Connector only allows 100 keep-alive requests on a
single Socket connection. You can set maxKeepAliveRequests=-1 to allow an
arbitrary number of keep-alive requests, or any positive value to stop it at
that many.
Of course, for the robustness of your application, your
What is available is restrictedUserAgents=comma separated list of regex
patterns (which forces all connections from those browsers to assume
HTTP/1.0, which in particular, disables keep-alive), and
noCompressionUserAgents=comma separated list of regex patterns which
will disable compression
Debra Bartling [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm having problems with Tomcat 5.5.x, Apache 2.2.0, and mod_proxy_ajp and
resources that are protected with a security-constraint. (This is after
updating from Apache 2.0.54, Tomcat 5.0.27, and mod_jk2, where the same
Nick Didkovsky [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello
After posting this question to the Commons mailing list, I have been
advised to ask the tomcat folks.
I am using Commons FileUpload 1.1 to manage HTTP POST uploads with Tomcat
running as a JkMount'ed service
Alexander Panzhin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is there any way to control the client certificate authentication?
That is I would like to have the certs in some other repository than
tomcat's default(java keystore).
truststoreFile=/path/to/my/trusted/ca/keystore
ok thanks
On 3/24/06, Alexander Panzhin [EMAIL PROTECTED] wrote:
But note that it returns an array.
Hi
use
request.getParameterValues(String paramName)
HTH
Vinu
Prashant Saraf wrote:
Hello all,
can some one tell me how to get value of select if it is multipal
Hello all,
I have a Apache web server Install on my server with jk_mod
my web application give following error
java.lang.NoClassDefFoundError: Publish/Connect (wrong name:
Publish/Publish/Connect)
I had a package call Publish which is jar file , i coppied that file in
mywebapp/WEB-IN/lib and
hi
we has similar issue
we did not mess with prepost values but changed
locking method to pesimistic, and set socket_timeout to 60sec, recycle_time
to 600sec and reply_timeout to 18(ms)
these were recommended by Mladen Turk and now Busy connections are
distributed among all nodes equally.
We have 12 jboss nodes using a single oracle 10g db server with following
specs...
4GB RAM
Dual CPU HT 3.2GHz Intel
RHEL 4 smp
We see load average going to 10 on a very regular basis and 30-90 during
peak hours and see the database as the bottleneck to our application
performance.
We also had
74 matches
Mail list logo