Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Mark Hagger
You are almost certainly having a problem with (default) character encodings on your system, usual things to check are the encoding that the JVM is using, for example what does: echo $LANG return (usually controlled by what's defined in /etc/sysconfig/i18n - although I'm not familiar with Ubuntu

asynchronous vs fastasyncqueue

2006-01-09 Thread Mark Hagger
? Does it have a lower memory/performance impact, better throughput or what? Any enlightenment, or indeed some performance figures if anyone has them, would be useful. Regards, Mark -- Mark Hagger [EMAIL PROTECTED

Re: Image Scaling Code

2006-01-12 Thread Mark Hagger
You need to have: -Djava.awt.headless=true in your java start up args, this will prevent it from trying to talk to an X server. Obviously some image related stuff has to talk to an X server, but just ImageIO stuff is fine. Mark On Thursday 12 January 2006 19:31, Frank W. Zammetti wrote: I

Re: Access log to see where robots go.

2006-02-11 Thread Mark Hagger
robots.txt is a standard file that search engines should request before trying to index your site. Its allows you to block the indexer completely, or partially from your site. Try a google search for robots.txt for more details. Not having one is the same as saying feel free to index my

Re: gc tuning

2006-03-29 Thread Mark Hagger
As I'm sure you know this is something of a large can of worms... All I can say is that from my experience of this modern JVM's are getting much better at working well with the default gc options (ie jdk 5.0 and above). We use jrockit for our systems, and just use a simple: -server -Xms256m

Re: Help with filter affecting Chinese words in request parameters

2006-04-10 Thread Mark Hagger
Hi, This may not be relevant here, but one standard gotcha that keeps hitting me is a difference in the platforms default encoding. Ie some machines have a default of ISO-88591, some CP1252, and some UTF-8. The JVM then just merrily does stuff using the default encoding, and thus developers get

Re: Problem: An unexpected error has been detected by HotSpot Virtual Machine

2006-05-08 Thread Mark Hagger
No question that this is a Java VM problem, no java code should be able to crash a VM, thats the point of java really. Although back in the real world this is clearly a problem being tickled by some code in tomcat. You might want to check that your OS is fully up to date, and possibly try using

Re: Tomcat as a standalone webserver. Why not?

2006-06-01 Thread Mark Hagger
This issue is discussed endlessly as far as I can see, both camps argue very well for their case However, my take from personal experience is that its very handy to have Apache in front, because it gives you a lot of scope to do little fixes and tweaks to odd users causing problems without

Re: Tomcat as a standalone webserver. Why not?

2006-06-01 Thread Mark Hagger
As it happens I can't really begin to count the number of times we've applied hacks at the Apache level to work around code bugs (did I say bug? I meant feature...). Although to be fair most of these are caused by users/customers doing odd things outside the spec of the current code. We also

Re: session replication/tomcat 5.5

2006-11-14 Thread Mark Hagger
Hi, Sorry to go slightly off the topic, but I have to express surprise (laugh) at the 99.99% availability bit. Its highly laudable to aim at that, indeed mobile phone operators claim to aim for, or even require, five 9's, ie 99.999%, which equates to a massive 315 minutes downtime per year

Re: session replication/tomcat 5.5

2006-11-14 Thread Mark Hagger
On Tuesday 14 November 2006 16:49, Caldarale, Charles R wrote: Your premise is well taken, but the math is a bit shaky. 99.99% uptime per week equates to 1 minute of downtime in that period, not one hour, which emphasizes you point even more. Ooops, how embarrassing, I calculated everything

mod_jk socket_timeout vs reply_timeout

2006-12-13 Thread Mark Hagger
Hi, I'm just considering an update to our workers.properties for the mod_jk Apache plugin. I'm not entirely sure what the difference between the socket_timeout and reply_timeout handling is, if any. socket_timeout is described as: Socket timeout in seconds used for communication channel

Re: mod_jk socket_timeout vs reply_timeout

2006-12-13 Thread Mark Hagger
. - Original Message - From: Mark Hagger [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, December 13, 2006 7:08 AM Subject: mod_jk socket_timeout vs reply_timeout Hi, I'm just considering an update to our workers.properties for the mod_jk Apache plugin

RE: Redeploy leaks

2009-01-06 Thread Mark Hagger
On Sat, 2009-01-03 at 14:30 -0500, Cosio, Raul wrote: Memory leak is an advanced task. But once understood is very easy to fix them, just follow some simple rules, most common situations are: 1) Not Usually a matter of torturing yourself for some time following classloader trees, together with

Re: Compilation problem when i release tomcat 5.5.26 to tomcat 5.5.27

2009-01-07 Thread Mark Hagger
I had a similar problem when I switched to tomcat6, as a workaround I ended up modifying my jsp to build the string outside of the %=..% bit and insert it in one lump. Ie changed something like %= ' + otherthing + '% into % String txt = ' + otherthing + '; % %= txt % which seemed to make it

painful slow start up with replication

2006-06-26 Thread Mark Hagger
Hi, I'm running a tomcat cluster with in-memory replication, two nodes in fact, with around 15 webapps all of which are being replicated, and I'm slightly surprised by the behaviour of the system when I start both nodes simultaneously up from cold. Basically as each node starts up it deploys the

Re: tuning garbage collection

2006-07-05 Thread Mark Hagger
Frankly I'd suggest moving to the latest JDK 5.0 release, 1.4.0 is a pretty old and creaking version of the JVM really. GC has undergone huge changes in Sun's JVM from 1.4.0 to their current 1.5.0_06 release. I also do wonder why you upgraded from tomcat 3 to tomcat 4. Whats wrong with tomcat

Re: Cluster serialization issue

2006-08-24 Thread Mark Hagger
My best guess is that you've somehow stored the request object itself on the session, and thus the replication is trying to replicate that to the other nodes. If this is the case then this is almost certainly a bad idea. Mark On Thu, 2006-08-24 at 09:04 -0500, Bischoff, Mathew wrote: Hi,