Ralph Einfeldt wrote:
some other approaches:
- cryptcat
http://farm9.org/Cryptcat/GetCryptcat.php
- openvpn
http://openvpn.sourceforge.net/
- tinc
http://www.tinc-vpn.org/
- CIPE
http://sites.inka.de/sites/bigred/devel/cipe.html
What about stunnel?
Forwarding an insecure port securely from
Innovest Ken wrote:
I only use tomcat, without using Apache... Because my
site are mainly jsp.
Yes, I have a script to kill the tomcat server before
starting again. And yes, I saw the 'All threads(150)
are busy' error message.
Innovest
As Denise said, you seem to be maxing out your threads.
Hi Pavle,
Do you use a database?
Is there a firewall between Tomcat and the database?
If both answers are yes, try using testWhileIdle, validationQuery,
time between eviction runs (can't remember property name) and other DBCP
properties.
Other than that, my typical advice, which I learnt from
Try setting testWhileIdle=true. Maybe also reduce maxWait.
HTH, but I'm not sure at all.
Antonio
Innovest Ken wrote:
hello,
I found from my thread dump that 80% of my thread are
at the following stage, waiting to lock
PoolableConnectionFactory. This is the cause of my
Tomcat hanging! Do I need to
4/ depends on the JDK; newer compilers /may/ see a repeat string concat
(+ op) and replace w/ StringBuffer under the covers...
This is a common psuedo-misconception. Compilers can't do anything with strings
that have a paramter of which the value can only be realized at runtime.
public
Your error page is too small.
For IE to show an error page (by default) it has to be more than 1Kb
long, IIRC.
Suggestion: Append to your page a comment like the following:
!-- This is stupid space to make stupid IE behave properly:
##
IIRC, recent versions (latest only?) of mod_jk do.
Simon Zeng wrote:
Another issue, I am running tomcat load balancing with mod_jk. I would like
to know from mod_jk.log (or anywhere else?) which tomcat instance the logged
message is for
so that if there is a problem, i can quickly go to that
Hi,
You are looking for lb type workers (even if you did not know). Look
for that in Tomcat docs.
In short:
JkMount /* balancer
worker.balancer.type=lb
worker.balancer.workerlist=tomcat1worker,tomcat2worker
(I am not sure about the workerlist word. It might be workers or
list... Search for an
Hi Yoav,
What the original poster meant is not that there is a race condition in
Tomcat, but in his own web application.
Maybe we should try to point him into the direction of fixing the problem.
So there I go:
- When it hangs, if on Unix/Linux, kill -QUIT your Tomcat process, and
you will
What are you using to make the PDF content slip into the wire?
If you are using a Writer you get from response.getWriter(), you may
have interest in trying to use the OutputStream, as in
response.getOutputStream().
This is what the description of the getWriter method says: Returns a
print
Were your Driver classes in a jar in common/lib ?
Thomas Nybro Bolding wrote:
Dunno if this might be of interest to others but I guess some might have
or get the same problems as I have been through for the past couple of
hours and therefore post my findings...
Setting up a database
Two things I would double-check:
a) The approach of creating a PrintWriter at constructor time. Is that
the right way of doing that?
b) Think of implementing flush and/or close for your ServletOutputStream.
HTH (but these are mostly wild guesses)
Antonio Fiol
Alex Moots wrote:
I've been
I can't remember the specifics off hand, but...
There is a mechanism in DBCP that allows you to check a connection with
a validationQuery (use this term when googling for it!) that can be run
a) every now and then on an idle connection (very useful if a firewall
sits in the middle)
b) before
No idea, but for now, ...
1 name -- 1 certificate -- 1 (TCP port, IP address) pair.
You can't do any better with any implementation I know of.
Yours,
Antonio Fiol
Martin Alley wrote:
Aha...
This from http://ietf.org/rfc/rfc3546.txt
3.1. Server Name Indication
[TLS] does not provide a
Wait a minute!!
not enough swap space means IIRC that your JVM is getting *really* big.
How big is your memory? What is your -Xmx setting?
I would recommend keeping -Xmx to 80% of your physical RAM at a maximum
(or less if your machine is not dedicated).
Could you please tell us a bit more on
Hi,
I'd like to have our Tomcat servers monitored, in order to get an alarm
if one of them stops responding.
But they are not using HTTP at all. We are using the Coyote AJP
connector because we have Apache in front of them, in a balanced
configuration.
So I'd like to load a page directly
John Sidney-Woollett wrote:
Antonio Fiol Bonnín said:
Hi,
I'd like to have our Tomcat servers monitored, in order to get an alarm
if one of them stops responding.
But they are not using HTTP at all. We are using the Coyote AJP
connector because we have Apache in front of them, in a balanced
It's a very nice software, but it still has not an AJP probing client.
Antonio Fiol
Scott Ahten wrote:
I use Mars to monitor Tomcat instances that are front-ended with
Apache. To insure that my back-end logic is working correctly, I
connect to Apache and look for a particular string of
Hi Don,
As Bryan already told you, you should clear the work directory of
already compiled versions.
Antonio
Donald Lee wrote:
I have since downloaded version 4.1.30 and am not experiencing this
problem. I have noticed that there are fewer sub-directories under
the WEB-INF. This leads me
Hi,
Class files for applets (or jars) are to be served by the web server
exactly as any other STATIC file.
Place them outside WEB-INF/classes, as anything in that directory is NOT
served.
Antonio Fiol
Lars Nielsen Lind wrote:
Hi.
How do I run JApplets / Applets with the Tomcat server?
I
Hi,
For JSP files, it's easy: instead of the source, they will get the
processed page. If you do not want your JSP to be called directly, place
it in WEB-INF or establish a restriction in web.xml (can't remember at
the moment how this is done, but it is not complicated).
For HTML, if they
I don't agree or disagree.
But this will break many apps. Mine for example.
Couldn't that be detected at jsp-java time? I believe that would not
hurt that much. In fact... (not having read the spec) ...what's the
whole point of creating the object at that time? IMHO, if it doesn't
exist, just
sense when used together.
Antonio Fiol
Gordon Luk wrote:
Hi Antonio Fiol,
Right, it should be helpful for development, we all want know what
IT's doing? But for production, i think it should be off.
Gordon
Antonio Fiol Bonnín wrote:
Suggestion:
Also add the logAbandoned parameter and set
Suggestion:
Also add the logAbandoned parameter and set it to true. I found it
very useful at hard times.
Antonio Fiol
Gordon Luk wrote:
Hi Doug,
Thank for your advise, indeed my project state at begining. So every
thing is simple right now. BTW, i already experience on connection pool
on my
Jeremy Nix wrote:
I've misphrased. What documentation I've come across indicates that
Apache (or IIS) is necessary to configure tomcat as a cluster. It very
well may be possible, which is why I'm asking the list. The main
feature that I'm looking for in this configuration is the session
Carlton Lo wrote:
I have installed 2 instances of tomcat on my machine. I've user 1 login to tomcat 1, when user 2 login to tomcat 2, it automatically logout user 1 in tomcat 1???
tomcat 4.0.6 on win 2000
Using the same working directory for both? --Avoid it.
Other than that, no idea.
kill -QUIT
to see what the threads are doing...
Surya Suravarapu wrote:
We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. We're
using AJP13 connector. The machine that we're using has got over 2GB of
Memory and good processor speed. Tomcat has been allocated 1 GB of max
memory.
Hi Bost,
If you *really* need to generate the files statically,
- You can simply use the session ID as identifier, you do not need the
user name.
- You should take care of cleanup on session expiry/invalidation. Think
Listener for that.
- You can store the file creation time in your
Hi Yoav,
Of course you are right (you always are ;-) about the way classloaders work.
However, I think Eric meant (and if he didn't, I do) that his class X is
in fact a single one, and he *needed* to copy the .class file into
common/... so that he could instantiate a new object of class X from
Did you have your class in .../server/classes/com/spss/catalina/loader
or directly in .../server/classes ?
If it was the former, it would probably be interesting to file a bug on
that.
Antonio Fiol
Setera, Craig wrote:
Yoav,
I didn't even think to try using a jar file because it should have
Christian Cryder wrote:
This works perfectly about 99% of the time. What we are observing is that
there are certain situations where we encounter a deadlock scenario (and
that's what prompted my original question). Basically, req2a writes the
redirect back to the client, the client receives the
On Linux, you can choose green threads or native threads. The former
means single process, so one CPU, and the latter means multiple
processes, so it benefits from multiple CPUs.
No idea under Windows.
Good luck.
John Hilton - CPX COA wrote:
I am using the following JAVA version
java
Hi Peter!
I'm stilld debating whether I want to write a new mailer module specifically for the monitor. the existing mailer component only measures failed requests and not necessarily the connections reaching a set threshhold.
Just a dumb suggestion: Can't you make requests fail?
I mean,
I have never worked with taglibs, but...
Your NullPointerException can only be caused because pageContext is null.
Can you access the pageContext (I understand it must be a field from
TagSupport) *before* doStartTag() is called?
You can try moving that line to be the first line *inside* the
Or trust the CA (import the CA certificate).
Andi Reinbrech wrote:
View the certificate when you get that prompt and then Trust the site. This
is a once off
-Original Message-
From: secam secam [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 11:09 AM
To: [EMAIL PROTECTED]
Subject:
Hi Mike, Neal, Angus,
I am sorry to have caused you so much inconvenience.
I will be happy to accept your advice off-list, as this is far off-topic.
As I just told George Sexton off-list, I sign all e-mail by default,
and this is unlikely to change. However, I promise to make an effort to
Hi,
To keep it up, you will need to setup session replication (See your
Cluster element in server.xml), either in-memory or JDBC. Both are
supposed to work.
However, that implies several things:
- Your session must contain Seralizable objects only.
- Your performance will be worse (how much
That won't help.
socket_timeout tells Apache to CLOSE connections that have been unused
for that time, but only WHEN it needs it.
So that will cause problems on the Tomcat side.
What we did (but our problem was slightly different) was:
Set the tcp keepalive sysctl of the web server (it is a
socket_timeout tells Apache to CLOSE connections that have been unused
for that time, but only WHEN it needs it.
So that will cause problems on the Tomcat side.
Why will it cause problems on the Tomcat side?
See below.
IMO, it has a good chance of fixing the problem as Apache/mod_jk will
Hi,
I am sure this is a FAQ, but I've googled for it and I could not find
any detailed info.
Is there a table specifying Tomcat version - JDK version compatibility?
In particular, I'm interested in running some Tomcat version with JDK
1.2.2. Is it possible? Which version of Tomcat?
I had
/RUNNING.txt.
Tomcat 3 I don't know, but I'd guess JDK 1.2 or later as well.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED]
Sent: Friday, March 05, 2004 2:48 PM
To: Tomcat Users List
Subject: Which Tomcat with which JDK
The place to store the CA certificate(s?) with which you will validate
your client certificates.
Does not make sense without client certificate validation.
Antonio Fiol
secam secam wrote:
Hi al,l
I'm new in tomcat
I attemp to use ssl with tomcat.
Can any one explain me what are the
Vladimer Shioshvili wrote:
Does anyone have a suggestion on how to server binary files through
tomcat? I am creating a binary file as a result of a request and would
like to let the user download it. Just setting mime type and passing
through as an attachment doesn't work as write methods of
John MccLain wrote:
Since IIS decrypts the request and passes it unencrypted to Tomcat, How do I
encrypt the request so that all communication from IIS with Tomcat is
secure???
Do you really need it? It would probably affect your performance
seriously. (No, I cannot prove that statement...)
That (with a high probability) is because some objects they store in
sessions are not Serializable. IOW, they violate the Servlet
Specification.
I'm just curious: is this actually a violation of the servlet spec?
The API seems to indicate that you can put anything in the session
that you
Hi,
Nice demonstration. I only miss the seriously part, which is covered
partially by the term expensive ;-)
I wanted only to add IPSEC as another possible scenario. It has less
(no) TCP overhead than a SSL tunnel. And it works without even changing
your config files.
Antonio Fiol
Could you please post your connector config?
Bernhard Wraase wrote:
Hi,
I found a bug in tomcat 5. I can reproduce it with tomcat 5.016, 5.018
and 5.019. Other versions of tomcat 5 I didn't test.
Here is my testcase:
create a folder under tomcat5/webapps (ie. sec-test)
put a zip-file
Johan Wallinder wrote:
Hi.
I've want to make a servlet that can display the source of any jsp/html
file (not the rendered one).
Basically my code is like this:
*set content type to text/plain
*get PrintWriter object out
*get the fileobject as an inputstream
*write to the out object
[EMAIL PROTECTED] wrote:
Wondering if anybody has experienced a web cert expiring in their keystore. If
so, I was wondering how you go about replacing it without bringing down the
server. Can you simply create a new certificate (in a different keystore, I'd
imagine) then get it signed via the
%= request.getSession().getAttribute(id); %
Jerald Powel wrote:
Hi,
I wish to maintain state across contexts and have in app1:
% request.getSession().setAttribute(id,2004073258); %
a href=%= response.encodeURL(../app2/index.jsp) %app2/a
when app2 is loaded the jsessionid is visible in
Hi Bill,
Seen that mod_jk has a socket_keepalive option for the Apache side, my
proposal consists in adding a similar setting in the Tomcat side.
Advantages:
If you pull the power cord of your Apache server (or something else bad
happens to it), Tomcat will notice shortly after, and will close
Simply comment out the connector. You are not using it, so you don't
need it there.
Antonio Fiol
Rommel Sharma wrote:
Dear Tomcat Gurus,
What is the use of Coyote/JK2 AJP 1.3 Connector on port 8009 in server.xml.
If I have two different tomcats running, and I have already changed the http
Hi,
- Try to turn all your servlet's non-final STATIC or INSTANCE variables
into LOCAL scope variables. This is definitely the first step, and will
likely remove 90% of problems.
For singletons or static variables outside your servlet:
- Concentrate all your accesses to each of them in a
George Hester wrote:
Thanks. I wish Damon Hougland and Aaron Tavistock knew that before they published their Sun sanctioned book. It would have saved me a lot of frustration. I really expected Sun's CORE books to be better then Wrox.
Their example was this which failed:
% switch (day) { %
%
ches_nutsy wrote:
hi, i would like to ask something about the servlets, i have followed all the tomcat's intructions diligently, and i am able to compile them correctly, my problem is that I'm not alble to view the servlets, why is this happenning? I have saved the class files under
As far as connections does not mean active connections, what
meissa.Sakho wrote is strictly true.
Each Apache process connects to Tomcat when (if) it needs to. Call that
a connection.
Apache processes do not disconnect from Tomcat. Call those idle
connections.
idle connections = connections
Hi Harry,
I'm going to try and hijack this thread if I may (!) because, as you say...
Welcome! ;-)
[...] The other Tomcat server runs on a Red Hat 9 machine at my home. It connects
to the above Oracle DB box - far away - using the same static IP address.
[...] The problem is with the the DB
Hello,
Seen that mod_jk has a socket_keepalive option for the Apache side, my
proposal consists in adding a similar setting in the Tomcat side.
Advantages:
If you pull the power cord of your Apache server (or something else bad
happens to it), Tomcat will notice shortly after, and will close
What Adam said was:
Look in the response headers to see it.
I think he *really* meant the response headers, not the html code.
To do that on IE, you need a plugin called ieHTTPheaders or something like that.
On Netscape/Mozilla, use LiveHTTPHeaders.
Otherwise, if you are not on HTTPS, you can
This sounds as anything but a DataSource problem.
What are you using NetBeans web monitor module for?
Antonio Fiol
Nathan Maves wrote:
Hey guys just joined the alias today!
I am getting the following error from my web app.
NotifyUtil::java.net.ConnectException: Connection refused
Means
[EMAIL PROTECTED] wrote:
Thank you for you answers Antonio,
Yes we have a firewall between tomcat and apache.
Does it means that there is something else to do?
If your firewall is well-behaved, no. There is nothing else to do.
However, this is not usually the case. :-(
If your firewall
[EMAIL PROTECTED] wrote:
Antonio,
I'm facing to the same performance problems with Tomcat.
My the maxProcessor value is equal to 75 while
the Apache's MaxClients is equals to 150.
the MaxKeepAliveRequests of apache is equal to 100
Do you understand the relationship between theses attributes ?
Hi,
would ...
JkMount /* local
... do the job?
Antonio Fiol
seph wrote:
I'd like to have apache proxy all jsp and servlets to an underlying
tomcat, but I'm having some trouble getting the JkMount directives
right. I have:
JkMount /*.jsp local
JkMount /*/servlet/ local
which are pretty much
Hi,
I'll save this e-mail preciously. What an amazing list!! Not even Google
would find more info together...
Antonio Fiol
Hernani Mourão wrote:
Personaly I work with OpenSymphony and I find it good.
If i may add some more:
http://www.jcorporate.com/
Roy Smith wrote:
I downloaded Tomcat-5.0.18 onto my Mac OSX-10.3.2 system. The scripts
in $CATALINA_HOME/bin (startup.sh, catalina.sh, etc) all got unpacked
without the execute bit set. I had to do chmod +x *.sh to get
things to work.
Is this a bug?
You probably downloaded the zipped
And why are you playing with tomcat startup classpath? It should be fine
out of the box.
suviswan wrote:
Yes infact i got this exception from the logs directory. This exception
occurs only when i add a particular directory in the
tomcat startup classpath.
-Surendra
- Original Message
It is not really a performance issue, but you will need to increase
maxProcessors to the MaxClients value you have in your Apache web server
in front.
If you have something other than Apache, it will not be called
MaxClients, but you get the idea...
I would not raise acceptCount unless you
Is maxProcessors lower than Apache's MaxClients?
Are you hitting the max. number of connections to your database?
When it goes slow, does it hang later?
Are you closing all your connections to the DB?
Q: --- Is there a checklist somewhere for this kind of things? It
would be useful for
Hi Kuloth,
Seatch Tomcat-user for concurrency problems or threading issues.
There has been recent discussion on the topic.
Concurrency problems are the main source of session mix-up. Also look
for instance variables (hint: avoid them in Servlets)
Antonio Fiol
Anbu wrote:
Hello Bill and
s/charge/load/ ;-)
You could try to do it by hand. That is, if you are using taglibs,
create a tag that does that (and includes the error management you
need). Otherwise, use a static method that loads a URL and returns its
content as a String (including the result of error management in that
I would write a reload config servlet. It will save you one JDBC
access per request.
Antonio Fiol
Larraquy wrote:
Hi all, I've got this doubt. My applicacion uses some properties files to
config some events or constants, or whatever, but it's job basically is to
map the users click on a JSP,
Try disabling name resolution (see previous posts, I can't remember how
this is done), just in case.
How does your CPU perform? Is it idle all time, or completely busy?
Antonio Fiol
tom ly wrote:
I've got Tomcat set up as the middle component passing heavy XML data between and client and a
Hi,
I am not Filip, but in my case most hangings were caused by too low
settings of Tomcat's maxThreads / maxProcessors or too low setting for
the database connections accepted.
And as Deepak says he is using Apache in front, I'd also check the
Apache, just in case.
To check, wait for it to
Mike Curwen wrote:
1) if by 'localized' you mean I've moved the variables from outside the
doGet()/doPost() methods, to inside those methods... then this is why
there is no 'data corruption' (due to multithreading issues), and it's
why you don't require synchronized access to those variables.
Didier McGillis wrote:
Sorry I never check 8080 when I got home, couldnt get to it from where
I was at today to test. That doesnt seem to be up either, I dont know
how this got so fubar'd and no one seems to be owning up to it.
I dont see anything in the logs other then just normal startup
[Wed Feb 11 15:11:24 2004] [error] [client 12.16.100.100] client
denied by server configuration:
/usr/local/tomcat/webapps/examples/WEB-INF/index.html
[Wed Feb 11 15:11:24 2004] [error] [client 12.16.100.100] client
denied by server configuration:
Didier McGillis wrote:
Yes Tomcat wouldnt start properly due to port 8005 was already in use
and the new Tomcat couldnt bind to it. Now I have gotten to a point
where I'm unsure of how I fixed this yesterday.
Stand alone version of Tomcat is fine, JSP code works fine. Go
through Apache and
Hi Sergio,
1) public_html would be enough, AFAICT.
3) What I meant is: if you have 512Mb RAM, set your JAVA_OPTS=-Xmx256m
(as I understand that you may have half your RAM free when Tomcat is not
running). The idea about buying more RAM was a kind of a joke,
especially because I did not know
Sergio wrote:
Hi All! Guys, I need help!
My system is Windows 2003 Enterprise Server with Apache 2.0.48
I need Windows for 3rd part application, but because I hate IIS so I am
using Apache2(the best!!!).
1)Does somebody can help me with configuration of Tomcat 5.0.18 for multiple hosts? I need to
Hi,
That depends mostly on your application. When we developed our app, some
developers used 4.1.27 and other 5.0.16 (IIRC), and the app is
compatible with both. I do not recall needing to make a special effort
to keep compatibility. So you still may have hope ;-)
Main difference, in our
Not sure if you can use /WEB-INF/... there.
However, I recall some Tomcat versions ignoring error-page in some
cases. IIRC, it was 4.1.18.
HTH,
Antonio Fiol
Wendy Smoak wrote:
I'm getting an Status 500 page with this:
ExceptionConverter: java.io.IOException: The document has no pages.
Even
Hello,
I have tried to configure mod_jk as a load balancer WITH sticky sessions.
I get the load balancing to work perfectly, but NOT the sticky sessions.
This is what I tried:
I set up 4 ajp13 workers and 2 lb workers.
Worker names are t1_a, t1_b, t2_a and t2_b.
Load balancer names are a and
Thank you, Dave.
Do jvmRoutes need to have the same name as the workers?
Yes, they do.
Then that means I cannot have two AJP connectors on each Tomcat.
Proposed setup is, then:
Worker names are t1 and t2
Load balancer name is t:
t -- t1, t2
t1 -- tomcat 1 port X (jvmRoute=t1)
t2 --
Sessions do not, but the underlying cookies may. It was just a suggestion.
Antonio Fiol
Mark Tebong wrote:
I don't think it has anythin to so with cookies because sessions don't
use paths.
-Original Message-
From: Antonio Fiol Bonnin [mailto:[EMAIL PROTECTED]
Sent: Sunday, February
When we insert duplicates, we do get SQLException as a response. We are
using Oracle 9.2, however.
No idea why they behave differently. What does the DB do if you insert
duplicates from sqlplus or a similar tool?
Antonio Fiol
George Sexton wrote:
The error is signaled by getting 0 back as
Mark Tebong wrote:
I have it configured so that when a request for a URL (say www.mydom1.com) comes in, the proxy sends it to 192.168.11.211/mydom1.
When I access the pages of the site that use the session thru www.mydom1.com, I get an exception. When I access it through
Jeremy Nix wrote:
Okay, let me pose another (slightly differenc) question. Say that
instance (A) and (B) are separate institutions, independent from each
other. Same scenario as before. How could instance (B) (the responding
instance) be able to measure latency in instance (A)? The reason I
There has been a recent thread on this. I think there was a nice amount
of info on that thread. Search the archives for it.
Yours,
Antonio Fiol
Rasmus Munk wrote:
Hi
Is it possible to turn off chunking for tomcat?
Is chunking only used when using HTTP 1.1 or is it also used when using the
You have to specify it on the JSP pages. I can't remember it properly,
but it must be something like:
@page session=false @
Google for it on the Tomcat site. I think you will find it.
Antonio Fiol
Neal wrote:
Someone just pointed out that my JSPs are have this in the header:
Set-Cookie:
Neal wrote:
I used the tag [EMAIL PROTECTED] session=false% which does appear correct,
but I'm still seeing that header:
Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/
There are two reasons why I want to get rid of this:
1. I assume I'm waiting server resources holding open a
So, that should mean that all I really have to do is defined the information in instance variables. Right?
There is however an important risk related to this approach.
AFAICT, you are not guaranteed that there is a SINGLE instance of each
servlet. It will be implementation-dependent.
So,
So, could someone summarize for me the different ways of creating a JDBC
DataSource in Tomcat?
I will start the summary, so that it's easier to correct/complete.
Please fill in the gaps ;-)
1. Have the DataSource defined in your application's context.
That way, if you have two apps, you
Hooper, Brian wrote:
These queries all seem like an awful lot of unnecessary processing. Here's what I use:
SELECT 1+1
Indeed. If your server supports it, there is an even simpler one:
select 1 or select 0.
But this is not correct SQL for an Oracle server. Equivalent Oracle
syntax is
For any database server I can think of:
CREATE TABLE validation ( dummy char(1) );
INSERT INTO validation VALUES ( 'X' ); -- and make sure you do this only
once
And then use as a validation query:
SELECT * FROM validation;
Well. Yes. I am ashamed of reimplementing Oracle's DUAL, but if you
I have not read through all the thread, so maybe I am repeating
something. If so, sorry about being lazy.
You seem to be hitting maxProcessors. If you do, no more threads are
created, and connections start getting into SYN_RECV state, simply
because Tomcat is not accept()ing them, exactly as
Hello,
Not that I have used Tomcat on Solaris a lot, but I have never seen that
file.
A general advice is to check that you close everything you open.
Antonio Fiol
Hollerman Geralyn M wrote:
While using Tomcat, I have often encountered a problem (a
java.net.SocketException) with Too many
So . what your telling me, is that it's a concurrency problem
created by having object attributes? That if they were, in fact being
called more like:
doProcess2 ();
than like:
doProcess1 ();
I wouldn't have these problems? Very interesting.
Not quite. I don't really understand your
Answer included in your text, and at the end.
Anthony Presley wrote:
[...] and I'm having a lot of errors, which
scale based on the number of users. For instance, assuming I have
around 10 people working on the system, I will have no errors. As that
number scales, it becomes a huge problem,
Hello,
I have TWO Apache and THREE Tomcat servers. I tried to configure them to
use mod_jk and sticky sessions.
Namely, I simply added jvmRoute=something to every server. A different
something for each, as explained on the docs. I see it at the end of
JSESSIONID cookie, so I must believe it
Ron Andersen wrote:
Is GZIP-encoding/mod_gzip avaliable in Tomcats web server?
Hello,
You can write a ServletFilter, and a HttpServletResponse wrapper to
achieve the same results.
Look into java.util.zip.*
-- I never said it was easy ;-)
Antonio Fiol
1 - 100 of 144 matches
Mail list logo