Please give the configuration of your workers : the workers.properties.file
Have you set worker.yourworker.socket_keepalive=1 in it ?
Jean-Claude
_
De : Greg Allen [mailto:[EMAIL PROTECTED]
Envoyé : mardi 20 juin 2006 16:42
À : users@tomcat.apache.org
Objet : Mod_jk/firewall
2006/6/21, Serlet Jean-Claude [EMAIL PROTECTED]:
Please give the configuration of your workers : the workers.properties.file
Have you set worker.yourworker.socket_keepalive=1 in it ?
Hmm, I didn't know about this option. Sometimes in our webapp we get a
strange behaviour, that is in the
Jeff Chuang wrote:
I could reproduce this problem on ALL my dual core AMD Opteron servers
running FC5-x86_64. Not sure it is OS porting problem? JVM problem?
native jni problem? or combination?
Is it possible to configure Tomcat to use APR on port 80, but disable
APR on port 443 to use
Thanks for your answer
I use openssl 0.9.8 to generate self-signed ca-certificat , and server
certificat and user certificat
if i use tomcat whitout apr but with jsse i get my client certificat (of
course i use keytool to import
all certificats generated by openssl ). If i use apache 2 + mod_jk
Markus Schönhaber wrote:
Maybe someone of the devs chimes in and proves me right or wrong.
Use class=org.apache.coyote.http11.Http11BaseProtocol inside
Connector ...
Regards,
Mladen.
-
To start a new topic, e-mail:
Mladen Turk wrote:
Markus Schönhaber wrote:
Maybe someone of the devs chimes in and proves me right or wrong.
Use class=org.apache.coyote.http11.Http11BaseProtocol inside
Connector ...
Thanks for proving me wrong ;-)
Regards
mks
Hi Dilan,
Thanks for helping again.
I had attached files but it seems attachments are not allowed. I am
adding the contets of these files below. To keep the mail size samll I
am removing old contents of the mail. For the sake of clarity I am
putting my problem statement also.
Problem:
I am
Mladen Adamovic wrote:
Max number of Java thread, IMHO.
Java thread is not the same as operating system thread.
In fact, JVM used to be single threaded on Linux and Windows and I'm not
quite sure has it changed recently.
So, you might have 800 Java threads but it is still one thread on
Mladen Adamovic wrote:
Biernatowski, Is your HTTP application multi-threaded ?
Irrelevant. Unimportant.
Why is that ? What happens if his app is using this line in JSP ?
%@ page isThreadSafe=false %
Google is your friend.
Or to have i.e. extremely large Lucene database or some other
Mark Thomas wrote:
Dariusz Wojtas wrote:
Any hints how to get rid of these extra FFFE chars?
My included files need to be UTF-8 encoded.
Use a text editor that doesn't insert these characters automatically.
Mark
Yup, for example, Eclipse (version 3 or higher). It is actually bad
FYI-
I've been using the curl command line client for the uploads and downloads.
When I tried the commons HttpClient from a java program, the upload/download
throughputs matched !! (at over 85% ).
regards,
Aman.
--
View this message in context:
Hello
I have two pages, where pages2 will be opened via a link from page1.
Page2 is only accessable via authentication (using BASIC).
So my question is, how can I avoid that from page1 when I am opening
page2, the dialog for authentication, by using a default user? (i.e. guest).
Any ideas or
Can you send me how you are accessing the website from within the firewall
and how you are accessing the same outside the firewall ?
Can you also send me the server.xml
Regards
Guru
Gurumoorthy Raghupathy
Web Support - Fidelity Investments International
* Tel: +44 1737 836798
* Internal:
Is this problem of document access in different directory with 5.5.17? I
am running the same build. Someone posted last week under the topic
Tomcat configuration error and yesterday Daniel has posted a similar
problem under Tomcat 5.5.17 and Ant.
suba suresh.
Mark Thomas wrote:
Bob Wyatt
Sorry : that 's all i thought
Hope that you don't forget to stop and restart your Apache server after
modifying workers.properties
Jean-Claude
_
De : Greg Allen [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 21 juin 2006 13:37
À : Serlet Jean-Claude; users@tomcat.apache.org
Objet
Did you check your OS's keep alive interval and modify it if necessary?
This interval has to be more frequent than your firewall's idle
connection termination timeout -- otherwise setting keepalive in mod_jk
does nothing for you.
[This is alluded to in the docs. The details on setting this
ok lets take one thing at a time... I am not an expert on this
Running the application locally using IntelliJ and tomcat:
java -version: 1.3.1_01
Tomcat Version: 5.0
While running on the server:
Sun(TM) ONE Application Server 7
java version 1.4.1_06
Keep in mind that It does not happen all
Hi,
I have installed multiple tomcat instances with apche server and mod_jk
connector, in windows environment.
I have problem in configuring the tomcats as separate services. Could
anyone suggest me how to install these tomcats as services.
Any help is appreciated.
with regards,
Pid,
Thank you very much for this response...
Placing the pdf.xml file in $CATALINA_HOME/conf/Catalina/localhost does now
allow http://myipaddr:8100/pdf to display the files in the specified
directory.
However, my webapp still does not pull it from here; it reports that the
resource
I ment rather how do you handle the upload in tomcat?
On 6/21/06, CMSuser [EMAIL PROTECTED] wrote:
FYI-
I've been using the curl command line client for the uploads and downloads.
When I tried the commons HttpClient from a java program, the upload/download
throughputs matched !! (at over
Mark,
Pid posted a solution that works for me in the testing, but not in my app...
I am posting the server.xml to comply with your request, but I am fairly
certain that the file was not edited or altered when the app was installed.
The app is third-party...
So my questions now delve on how to
Leon Rosenberg-3 wrote:
I ment rather how do you handle the upload in tomcat?
I have written any custom upload handlers. I just give the appropriate url
to the put client and it's done.
--
View this message in context:
http://www.nabble.com/file-upload-speed.-t1816944.html#a4974321
Sent
Leon Rosenberg-3 wrote:
I ment rather how do you handle the upload in tomcat?
I have not written any custom upload handlers on the web server side. I
just give the appropriate url to the put client and it's done.
--
View this message in context:
thanks for your reponse
But i find the trouble , tomcat 5.5.17 with tomcat-native-1.1.3 and
APR-1.2.7 work well with only
openssl-0.9.7 series not with openssl-0.9.8 series.
regards,
Jean-Michel
--
View this message in context:
np
I don't understand why you're or your webapp is looking here:
/myapp/jsp/app/C666119.pdf
when the files are available here:
/pdf/C666119.pdf
Is the first a filesystem path, or a web URL?
When you say my webapp does not pull it from here, what do you mean by
that? Sorry if I came to this
Pid,
I mean that it appears as though the webapp is looking in its own path for
the pdf, and not the path of pdf files defined for Tomcat...
The webapp true path would be:
$CATALINA_HOME/webapps/myapp/jsp/app/C666119.pdf...
We connect to it by http://myipaddr:8100/myapp
The app 'myapp' is a
Hi Bob-
in your Tomcat servlet code you can read the file directly
in this example I am reading fubar.properties from folder /fu/bar
BufferedReader reader = new BufferedReader(new
FileReader(/fu/bar/fubar.properties));
(If not you will have to supply URI such as
Martin,
Thank you for the reply...
I have no idea where to make the suggested changes...
I am really, really new to this and have zero experience with this...
If someone has the patience to help me, I would appreciate it!
Regards,
Bob
-Original Message-
From: Martin Gainty
Please see
http://java.sun.com/developer/technicalArticles/Programming/linux/
Java on linux has been natively multithreaded since 1.3
Uops,
I haven't known.
Thank you all for your information (to Alex Turner, Leon Rosenberg,
Darryl Milles).
I was mistaken about this.
If I am not mistaken jakarta-tomcat-5.0.28
--
View this message in context:
http://www.nabble.com/Tomcat-creating-two-threads-for-one-request-t1743271.html#a4975580
Sent from the Tomcat - User forum at Nabble.com.
-
To start a
Alex Turner wrote:
Please also note that having a max threads of 750 is pretty much
gaurtenteed
to cause your system to grind to a halt under high load. (Most linux
systems I've seen buckle somewhere around a load average of 75 or so,
which
means 75 threads waiting for CPU time).
You mean 75
Rick--
2 options
go commercial and buy a monitor app that will display all the CPU, Thread,
Memory, I/O metrics
http://manageengine.adventnet.com/products/applications_manager/monitor-tomcat.html
-OR-
I found by hand tuning the startup.sh or startup.bat files I could fine tune
the number of
Now that we are moving to the theoretical discussion, you will
probably want to have a look at
http://www.kegel.com/c10k.html
Regards
Andrew
On 21/06/2006, at 4:56 PM, Mladen Adamovic wrote:
I spoke recently with guy from Microsoft (project manager from
server division).
He said that
Bob Wyatt wrote:
Pid,
I mean that it appears as though the webapp is looking in its own path for
the pdf, and not the path of pdf files defined for Tomcat...
Yes, see below.
The webapp true path would be:
$CATALINA_HOME/webapps/myapp/jsp/app/C666119.pdf...
OK, that's a filing system
I trying to setup virtual hosts on tomcat 5.5. and windows.
I have added the following to server.xml
Host name=wiki.net appBase=c:/wiki
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=wiki_log. suffix=.log
timestamp=true/
/Host
I have added
Read the docs:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Context path attribute: The value of this field must not be set except
when statically defining a Context in server.xml, as it will be infered
from the filenames used for either the .xml context file or the docBase.
Read the docs:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Context path attribute: The value of this field must not be set except
when statically defining a Context in server.xml, as it will be *infered
from the filenames* used for either the .xml context file or the docBase.
Pid,
HREF=C666119.pdf
As no file path is in HREF, and pdf.xml is correct (as exhibited by
http://myipaddr:8100/pdf), should I be changing the path from /pdf to
/myapp/jsp/app, or are you advocating changing the app so the HREF becomes
/usr/lg/unformq/C666119.pdf? This latter one, I have no idea
This discussion focuses primarily on serving static files to a client, not
processing dynamic web pages. Most people running tomcat are processing
dynamic pages, like getting data from a database and compositing a page
based on that data.
An FTP site, or a static web site will typically be I/O
Hi,
I am trying to get in-memory session replication working and am testing
running 3 seperate tomcat instances on the same server.
I am using tomcat-5.5.15 and apache-2.0.54 with jk2.
Whenever i run my test app although it should be doing round-robin load
balancing it doesn't switch to another
I am profiling our application in jprofiler. I have noticed that the deep
size of StandardSession object for each user is VERY large - ~ 11+mb. Yet I
know that we are not adding that much data. Where is all that memory coming
from? Is it truly non static data that is overhead for each session, or
you have two issues and would be better off trying to isolate them
separately.
1. Session replication not working
To Troubleshoot: Isolate the problem, so in this case, get rid of
apache/mod_jk
Follow these steps:
1. Get a small load balancer like http://siag.nu/pen/
If you are on windows,
also, use Tomcat 5.5.17
Sean O'Reilly wrote:
Hi,
I am trying to get in-memory session replication working and am testing
running 3 seperate tomcat instances on the same server.
I am using tomcat-5.5.15 and apache-2.0.54 with jk2.
Whenever i run my test app although it should be doing
If you put wiki.war into c:/wiki it will deploy and create
c:/wiki/wiki/contents of war
then the app will (if it's working) be available at:
http://server:port/wiki/
teknokrat wrote:
Yeah, I have. If you have a look at the bottom I have a ROOT.xml with
Read it again.
context path= docBase=
On Wed, 21 Jun 2006 11:26:28 -0500
Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
also, use Tomcat 5.5.17
Sean O'Reilly wrote:
Hi,
I am trying to get in-memory session replication working and am
testing running 3 seperate tomcat instances on the same server.
I am using
We are doing load balancing with Apache and mod_jk. We have five
instances of Tomcat running on three servers. Two Tomcat instances are
fine. But, Three Tomcat instances show really high Busy numbers on
the Status page. Here is what it looks like:
NameTypeHostAddrStatF
Here is that data a bit better:
NameTypeHostAddrStatFVAccErrWr
RdBusyMaxRRCd
tomcat24ajp1310.9.100.2:2400910.9.100.2:24009Stopped
1659803960 0 429496729448
tomcat14ajp13
Martin -
I guess I'm being obtuse, but WHAT won't work? What I want to know
is how Tomcat detects whether the browser accepts cookies, that is,
whether it is set to accept cookies or not?
Garey Mills
Library Systems Office
UC Berkeley
The brain is not where you think
On Wed, 21 Jun
I think what he's getting at is that Tomcat (or any other web server)
cannot tell how a browser is set wrt cookies without trying to set one
and then seeing if it's there.
Garey Mills wrote:
Martin -
I guess I'm being obtuse, but WHAT won't work? What I want to know
is how Tomcat
David -
Well, okay then, but how can my app find out what Tomcat knows
about whether the browser accepts cookies or not? And when does Tomcat
try? Before control is passed to my app?
Garey Mills
Library Systems Office
UC Berkeley
The brain is not where you think
On Wed, 21 Jun 2006,
I really should have added instructions :-)
but ok, here they are
goto
http://moskito.anotheria.net/download/nightly/
and download the nightly (actually daily) build
http://moskito.anotheria.net/download/nightly/moskito-dist.2006-06-21.tar.gz
you can check the contents of the demowebapp
Why would it try until your app tells it to? AFAIK (admittedly, not
very far; I don't use cookies) think it needs to be handled by your app.
Garey Mills wrote:
David -
Well, okay then, but how can my app find out what Tomcat knows
about whether the browser accepts cookies or not?
sorry, maybe i'm misunderstand a whole bunch of things here, but what
exactly is your appropriate url?
I mean, you can test download speed by accessing your own servlet or
even static content, ok, but you can't upload anything without having
a receiver for it.
leon
On 6/21/06, CMSuser [EMAIL
David -
Tomcat uses cookies to establish a session with the browser. If it
can't use cookies, it uses URL rewriting. So whenever someone uses my app,
Tomcat tries to set a cookie.
If it was the case that Tomcat didn't know whether the browser
accepted cookies until after it
Ok, now I understand what you're getting at, but I still don't see how
tomcat could know if a browser accepts cookies on the initial request
from the browser (which seems to be what your assumption would
require). I wouldn't mind a bit if I were proven wrong, though...
Dave
Garey Mills
you've setup sticky_sessions to be false, (btw, I thought that only took
0/1 values) so how can you expect session affinity from that?
Filip
thuss2 wrote:
We have 10 web servers with Tomcat's running on them and a mod_jk
configuration to prefer the tomcat on localhost and only failover to
Filip, we're not using sessions so we don't need sessions affinity, but if we
did we'd use session replication rather than sticky sessions. The sticky
option does accept true/false according to the documentation
http://tomcat.apache.org/connectors-doc/config/workers.html . I think that's
all
Filip Hanik - Dev Lists wrote:
you've setup sticky_sessions to be false, (btw, I thought that only took
0/1 values) so how can you expect session affinity from that?
Recent mod_jk versions can take True/False instead 1/0 just
as an convenience method.
Also the 'distance' param will be
That explains it, thanks. I've just set the lbfactor extremely high on the
localhost in the interim to get mod_jk to prefer it over remote tomcats.
-Todd
--
View this message in context:
http://www.nabble.com/mod_jk-failover-and-preferring-localhost-t1825380.html#a4980806
Sent from the Tomcat -
Hi,
I've fot a couple of questions regarding Tomcat's JNDI implementation.
In the JNDI resources howto of Tomcat 5.5
(http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html) at
paragraph 'Adding Custom Resource Factories', just under '1. Write A
Resource Factory Class' one can read
My first thought is Oracle will install its own Java Virtual Machine.
Oracle likes to be the entire world. Is Tomcat still finding a JVM that
it can use? Do you have the Oracle Universal Installer running? What
happens if you run Oracle and Tomcat on two different computers?
If that's not
On first response, Tomcat both set's a cookie JSESSIONID and appends the
same to the page links (when properly coded). If the cookie comes back
on the next request, url rewriting is dropped in favor of the cookie. No
magic, tomcat just covers all it's bases up front.
See
David -
Thanks for the clear, concise answer.
Garey Mills
Library Systems Office
UC Berkeley
The brain is not where you think
On Wed, 21 Jun 2006, David Smith wrote:
On first response, Tomcat both set's a cookie JSESSIONID and appends the
same to the page links (when properly
I've been searching the list but so far I have not been able to find a
solution to problem. I am running tomcat 4.1.31 using java 1.4.2 on a
Solaris 8 machine. In our configuration we are running two tomcat instances
sharing binaries and webapps directories by CATALINE_HOME and CATALINE_BASE
Good Afternoon Glenn-
For the reasons you just enumerated I ALWAYS install Oracle on its own box and
ALWAYS point it to its own installed version of JVM..
Conversely-
I ALWAYS install Tomcat on its own box and point it to its own JVM
The thought of one (set of) processes exhausting the thread
Hi there!!
What are the differences in apache-tomcat performance (in fact I have a
weird behaviour over an oracle database that´s the reason on my question to
the list) on windows and linux?? ... I have this doubt because my develop
environment is over windows and I have no problems updating
On at least one version of Oracle (10 IIRC), the default install hijacks
port 8080 for Oracle XDB. When you say you have installed Oracle on a
different port, perhaps you are referring to the Oracle port for database
traffic, which is normally 1521 - this is a different port which I think is
web
The monitoring component works for the first hour after the VM is
started in the free version. In the commercial version, the monitoring
information is availble the whole time - as for pricing - no idea..
There as an article about JRocket in one of the last IX magazines (DE)
Andrew
Leon
hi GB,
From catalina.bat
rem CATALINA_HOME May point at your Catalina build directory.
rem
rem CATALINA_BASE (Optional) Base directory for resolving dynamic
portions
rem of a Catalina installation. If not present, resolves
to
rem the same directory
Mladen Turk wrote:
Filip Hanik - Dev Lists wrote:
you've setup sticky_sessions to be false, (btw, I thought that only
took 0/1 values) so how can you expect session affinity from that?
Recent mod_jk versions can take True/False instead 1/0 just
as an convenience method.
instead or as well,
Here's a how-to that was posted to this mailing list:
http://www.nabble.com/Re%3A-running-two-instances-of-tomcat-p3560229.html
I haven't tried it myself, but it looks pretty complicated so it must
be right. :-)
--
Len
On 6/21/06, Bharathi Kattamuri [EMAIL PROTECTED] wrote:
Hi,
I have
71 matches
Mail list logo