- Original Message -
From: Joerg Endrullis [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, September 16, 2008 1:13 PM
Subject: disable caching of static files in tomcat 5.5
Hi,
I have a dynamically generated image a.jpg
and I want Tomcat to always deliver the current
Sounds like you're not explicitly killing off the connections you set in
the first place.
-Original Message-
From: sinoea kaabi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2008 4:24 AM
To: users@tomcat.apache.org
Subject: Tomcat 5.5, JNDI Connection Pooling, Active
On Tue, Sep 16, 2008 at 6:38 AM, Martin Spinassi
[EMAIL PROTECTED] wrote:
I don't know yet, I didn't try it yet, I was waiting to see if there is
a better solution than rsync them every minute.
Why not have your upload servlet invoke rsync when a new file has
been stored?
--
Hassan Schroeder
How exaclt do you mean?
Anywhere in my code where you have seen that?
Thanks!
Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep
increasing
Date: Tue, 16 Sep 2008 10:26:03 -0400
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sounds like you're not
At the end of the servlet or JSP or whichever, you need to kill off
connections created that you establish.
-Original Message-
From: sinoea kaabi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2008 9:56 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5, JNDI Connection Pooling,
Yes, as I said in the first post, that I have checked through all the code,
and I am closing all the connections (in a finally block) after they have been
used.
final Connection connection = datasource.getConnection();
try {
...
..
blah .. blah
} finally {
connection.close();
}
Subject:
On Tue, 2008-09-16 at 07:37 -0700, Hassan Schroeder wrote:
On Tue, Sep 16, 2008 at 6:38 AM, Martin Spinassi
[EMAIL PROTECTED] wrote:
I don't know yet, I didn't try it yet, I was waiting to see if there is
a better solution than rsync them every minute.
Why not have your upload servlet
- Original Message -
From: sinoea kaabi [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, September 16, 2008 5:10 PM
Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep
increasing
Yes, as I said in the first post, that I have
return statements do not prevent the finally block from executing:
http://java.sun.com/docs/books/tutorial/essential/exceptions/finally.html
B.
Johnny Kewl wrote:
- Original Message - From: sinoea kaabi [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday,
Yeah, that should be closing itwould you be establishing the
connection(s) anywhere else though?
And do you have a ResultsSet that you're leaving open? You would need to
close that, too.
Same for any prepared or callable statement as well.
-Original Message-
From: sinoea kaabi
- Original Message -
From: Brantley Hobbs [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, September 16, 2008 5:27 PM
Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep
increasing
return statements do not prevent the finally
sinoea I dont use the JNDI pools, but I've marked a possible issue below...
Dont think its getting to finally guess ;)
On the dB pools I use... connections will not increase... unless that many
threads are used at same time..
ie the connections represent a max activity level... otherwise
- Original Message -
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, September 16, 2008 5:17 PM
Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep
increasing
- Original Message -
From: sinoea
On Tue, Sep 16, 2008 at 8:17 AM, Martin Spinassi
[EMAIL PROTECTED] wrote:
Why not have your upload servlet invoke rsync when a new file has
been stored?
Can you give me some more details or where to get some more info?
Runtime.exec(/usr/bin/rsync) -- though you may want to instead
invoke a
On Tue, 2008-09-16 at 08:56 -0700, Hassan Schroeder wrote:
On Tue, Sep 16, 2008 at 8:17 AM, Martin Spinassi
[EMAIL PROTECTED] wrote:
Why not have your upload servlet invoke rsync when a new file has
been stored?
Can you give me some more details or where to get some more info?
Yeah, it sounds that wayalmost like passing off one query to another
servlet or page, and then the leak occurs.
Do you have a monitoring tool that you can see the connections increase?
-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2008
Is it possible to obtain timestamps with millisecond precision in access
logs? I don't see anything about specifying the date-time stamps on
AccessLogValve page and was wondering if there wasn't a way to get this
data.
Tomcat 5.5
Thanks
- Original Message -
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, September 16, 2008 5:41 PM
Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep
increasing
- Original Message -
From: Brantley
I think you need to add one more line to your CATALINA_OPTS statement:
-Dcom.sun.management.jmxremote=true
If that does not help you, I'd try using port 6969 (the default) instead of
. It should not matter, but I would at least give it a try as part of the
troubleshooting process. You could
I am a Tomcat 5.5.x user and I am considering upgrading to Tomcat 6.0.
In particular I am interested in knowing more about the details of
changes made to Memory usage optimizations and Refactored
clustering, two of the changes mentioned in 6.0.
Performance and scalability are becoming
It is. The docs are here:
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
I use
Valve
className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=unity_access.
suffix=.log pattern=%h %v %t
Ah, but %D is the time taken to process the request in ms. It's not the
timestamp.
On Tue, Sep 16, 2008 at 3:14 PM, David Fisher [EMAIL PROTECTED]wrote:
It is. The docs are here:
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
I use
Is there any (complete) documentation on the Cluster Deployer? The official
documentation doesn't actually say anything about it (or let alone anything
useful at all...):
http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html
I'm trying to set up an environment that is both
Hi Tomcat gurus,
can somebody please explain to me little bit more Tomcat versioning than
I can find at following link?
http://tomcat.apache.org/whichversion.html
I'm interested in compatibility level (binary/source) between various
Tomcat Major.Minor.Micro releases. What is intention and
Jonathan Mast wrote:
Is it possible to obtain timestamps with millisecond precision in access
logs?
One of the nice things about open source is that you can read the source
code to see exactly how it does things. In this case you want
Paul McGurn wrote:
Is there any (complete) documentation on the Cluster Deployer? The official
documentation doesn't actually say anything about it (or let alone anything
useful at all...):
http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html
The source code is probably
Petr Sumbera wrote:
Hi Tomcat gurus,
can somebody please explain to me little bit more Tomcat versioning than
I can find at following link?
http://tomcat.apache.org/whichversion.html
I'm interested in compatibility level (binary/source) between various
Tomcat Major.Minor.Micro
Thanks Mark.
I'll work at actually translating this into real documentation and examples.
As far as patching, I'm not qualified to do that, but I'd be willing to take a
crack at it if there's a list of bugs/wishlist items for it.
Paul McGurn
-Original Message-
From: Mark Thomas
Correct, I realized after I posted.
I guess you'll have to get the source code for AccessLogValve and roll
your own override...
I found this article via google accesslogvalve tomcat source
4th link:
http://www.devx.com/Java/Article/32730/1954 includes a source code
archive and the example
Paul McGurn wrote:
Thanks Mark.
I'll work at actually translating this into real documentation and examples.
As far as patching, I'm not qualified to do that, but I'd be willing to take
a crack at it if there's a list of bugs/wishlist items for it.
Sounds great. I don't recall any open
Martin Spinassi wrote:
On Tue, 2008-09-16 at 08:56 -0700, Hassan Schroeder wrote:
On Tue, Sep 16, 2008 at 8:17 AM, Martin Spinassi
[EMAIL PROTECTED] wrote:
Why not have your upload servlet invoke rsync when a new file has
been stored?
Can you give me some more details or where to get some
Mark,
Interesting but shouldn't the getDate method be slightly different:
if ((systime - currentDate.getTime()) 1000) {
In this line if currentDate is at millisecond 900 then the next second
starts with the millisec and that is 100 ms later.
long cachedtime =
Does it have the %D reading?
Also, I have seen on Apache web server that %D does not work properly for
microseconds windows instead it is 15msec resolution due to windows timers.
Basically not very usefull since some code is written correctly and is under
15Msec. I think I saw the same issue
David Fisher wrote:
Mark,
Interesting but shouldn't the getDate method be slightly different:
if ((systime - currentDate.getTime()) 1000) {
In this line if currentDate is at millisecond 900 then the next second
starts with the millisec and that is 100 ms later.
long
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Lloyd,
DIGLLOYD INC wrote:
I am using Realm className=org.apache.catalina.realm.JDBCRealm ...
I don't know what's required to use a DataSourceRealm (yet), but if it's
a simple switch I'll try it.
Ooh, using DataSourceRealm is much better,
Christopher Schultz wrote:
Lloyd,
DIGLLOYD INC wrote:
I am using Realm className=org.apache.catalina.realm.JDBCRealm ...
I don't know what's required to use a DataSourceRealm (yet), but if it's
a simple switch I'll try it.
Ooh, using DataSourceRealm is much better, because you can
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
To whom it may concern,
Tom Cat wrote:
I have a servelet spawn a thread that should run until tomcat is
shutdown. The problem is, when Tomcat is shut down, the thread keeps
running.
You need to define your thread as a daemon thread and it won't
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Walter,
walterw wrote:
Here are the exact contents in the file after maven filters it.
[code]
?xml version='1.0' encoding='utf-8'?
!--
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html Even
though this works inside of
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mark,
Mark Thomas wrote:
Christopher Schultz wrote:
Right: JDBCRealm does not do any connection pooling AFAIK.
It is better than that. It uses a single connection and lots of syncs :)
Sweet! Sounds like a heckuva first-term freshman hack-job to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kazukin,
kazukin6 wrote:
And yes, for us it' not possible to give users to change only parts of jsp's
and deny execution of these parts based on some credential assessments
executed during some if checkAccess tags
How do your users submit updated
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Fred,
Fred Toth wrote:
I was in fact able to solve this with a simple filter, though this is not
a general solution. In hopes that this helps someone else, the filter
is included below.
i like what you're done here, but it's odd that the
On Tue, 2008-09-16 at 22:20 +0200, André Warnier wrote:
[...]
The question I've been holding back since your initial post, is why
exactly you do want to load-balance similar requests to 2 Tomcats ?
Just an idea :
If it is because you have a) image stuff and b) non-image stuff, and
they
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
André Warnier wrote:
Anyway, my question is :
In this /etc/init.d/tomcat5.5 file, in the start section, there is a
line that looks like this :
mkfifo -m700 $CATALINA_BASE/logs/catalina.out
I am unfamiliar with the mkfifo command.
The
I've been doing a lot of webapp development on tomcat, but currently my
process is all manual. I write the code in Eclipse, and then copy the
appropriate files over to tomcat. I'd like to automate and standardize my
process.
So would y'all mind explaining how your dev environment is configured?
If you're expecting the size of your image store to grow, or better yet, grow
rapidly, you'd be best served to consider a strategy either with
mod_proxy/mod_rewrite, or better yet, looking into a CDN (content delivery
network) to host the images themselves.
Example, I'm about to launch an
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Shane,
Shane Abernathy wrote:
Right now I'm getting the error saying that nothing is listening on
the port 8080 and I have the above setup.
What above setup? Tomcat 5.5? How about your platform, where you got
Tomcat, how you installed it, and how
On the other hand, I find that transparent junctino sounds really
good. If those guys at CERN (which must be using multiple Tomcats) ever
need a name for a new particle discovered on their brand new Large
Hadron Collider..
-
I use Eclipse with the Web Standard Tools plug-in. That lets me run
and debug the app in Eclipse. When the app is ready to go I export it
to a .war file and deploy the .war to the server.
--
Len
On Tue, Sep 16, 2008 at 17:59, Bai Shen [EMAIL PROTECTED] wrote:
I've been doing a lot of webapp
Hi Johnny,
Thanks for your responses. I did read them on the day that you posted them but
only got a chance now to respond. Needless to say I have gone with a simple
HttpURLConnection solution, as my choice out of other suggestions given to me
in other threads, of using numerous other
You could use ant to automate it. I've tried deploying from eclipse to tomcat
briefly. It seemed alright as well. Don't know too much about the quirks since
I delopy to JBoss primarily.
-Original Message-
From: Bai Shen
Sent: 17/09/2008 05:59:08
To: Tomcat Users List
Subject: How do
From: Alex Mestiashvili
[mailto:[EMAIL PROTECTED]
Subject: Re: add memory
export JAVA_OPTS= -XX:MaxPermSize=256m -Xmx12000m
Do you really have enough RAM on your server to make a 12 GB heap viable?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
From: Brian Clark [mailto:[EMAIL PROTECTED]
Subject: Re: Non-Heap Memory always increasing during
deployment for TC 5.5.26/Solaris/JVM 1.5.0_16
I think you need to add one more line to your CATALINA_OPTS statement:
-Dcom.sun.management.jmxremote=true
The above is not necessary. Any
From: emerson cargnin [mailto:[EMAIL PROTECTED]
Subject: Non-Heap Memory always increasing during deployment
for TC 5.5.26/Solaris/JVM 1.5.0_16
Every time I hot-deploy an application, the non-heap memory goes up.
Some component in your environment is hanging onto object or class references
53 matches
Mail list logo