Re: Concurrent Low Pause GC - Eden Space Size (Apache Tomcat/5.5.27)

2011-06-10 Thread Martin Grotzke
parameter to 20% of the > total available heap (-Xmx14336m) - should be approx 2936000kbytes. What's your jvm version? There was a bug in the sun/oracle jvm so that NewRatio was not used [1]. You can still set the new size fix with NewSize. Cheers, Martin [1] http://bugs.sun.com/v

Re: How to cluster two embedded tomcat 7 instances

2011-06-10 Thread Martin Grotzke
Hi Rüdiger, On 06/10/2011 10:42 AM, Rüdiger Herrmann wrote: > Still, I would be *very* interested in knowing how to use the > PersistentManager to realize session failover - if it is inteded to > serve that purpose at all. I remember there were people posting on this list that they're trying to ac

Re: How to cluster two embedded tomcat 7 instances

2011-06-09 Thread Martin Grotzke
ager) needed. My focus is on finding a > lightweight and purely programmatic solution. > > Thanks in advance, > Rüdiger > > [1] http://eclipse.org/rap > > - > To unsubscribe, e-mail: users-unsubscr...@to

Re: JDBCStore Persistent Manager

2011-04-27 Thread Martin Grotzke
rything possible with the Persistent > Manager. I use the Memcached Session Manager (non-sticky > approach) and it works brilliantly. > > Take a look at this which may be of help to you : > http://www.reinwaldwarapen.com/2011/01/storing-and-sharing-sessions-among.html > > &

Re: JDBCStore Persistent Manager

2011-04-26 Thread Martin Grotzke
An option for such a case is memcached-session-manager with stickyness disabled: http://code.google.com/p/memcached-session-manager/ A user reported on the msm mailing list that he was trying to achieve the same what you want, also with persistentmanager, but ran into the same problem as you do. T

Re: Facelets webapp can't start on Tomcat 6.0.32

2011-04-25 Thread Martin Grotzke
log This should give you an idea what's the reason, or you can post it. Cheers, Martin -- Martin Grotzke http://twitter.com/martin_grotzke signature.asc Description: OpenPGP digital signature

Re: Setting the expiry for static content served by Tomcat 6.0.32

2011-02-23 Thread Martin Grotzke
You might serve static resources with Apache/nginx/haproxy. This has also the advantage that you save threads in tomcat. Cheers, Martin Am 23.02.2011 14:47 schrieb "Reinwald Warapen" : Hey, Is there any way I can specify the expiry of static content (js,css etc) by some setting in the context.xml

Re: Replicate session-object after values in object has been changed

2011-02-16 Thread Martin Grotzke
On Wed, Feb 16, 2011 at 5:08 PM, Christopher Schultz wrote: > On 2/15/2011 3:46 PM, Martin Grotzke wrote: >> This is how it's implemented for memcached-session-manager (msm): when >> loading the session from memcached (either due to a tomcat failover or >> when loading

Re: Replicate session-object after values in object has been changed

2011-02-15 Thread Martin Grotzke
prob, I could reproduce it, it's fixed now. @Others: sorry for posting off-topic. Cheers, Martin > > > > --- Martin Grotzke schrieb am Di, 15.2.2011: > >> Von: Martin Grotzke >> Betreff: Re: Replicate session-object after values in object has been changed >> An:

Re: Replicate session-object after values in object has been changed

2011-02-15 Thread Martin Grotzke
cX1 > =c4Pg > -END PGP SIGNATURE- > > --------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Martin Gro

Re: Replicate session-object after values in object has been changed

2011-02-15 Thread Martin Grotzke
ode.google.com/p/memcached-session-manager/issues/detail?id=83 ? Cheers, Martin > > --- Martin Grotzke schrieb am Di, 15.2.2011: > >> Von: Martin Grotzke >> Betreff: Re: Replicate session-object after values in object has been changed >> An: "Tomcat Users List"

Re: Replicate session-object after values in object has been changed

2011-02-15 Thread Martin Grotzke
On Tue, Feb 15, 2011 at 8:49 PM, Martin Grotzke wrote: > On Tue, Feb 15, 2011 at 11:08 AM, Thomas Andraschko > wrote: >> Thanks! i will give it a try! >> Is there also another manager available without using memcached? > None that I'm aware of, but perhaps google w

Re: Replicate session-object after values in object has been changed

2011-02-15 Thread Martin Grotzke
would like to have replaced by another backend? Cheers, Martin > > > > --- Martin Grotzke schrieb am Di, 15.2.2011: > >> Von: Martin Grotzke >> Betreff: Re: Replicate session-object after values in object has been changed >> An: users@tomcat.apache.org >

Re: Replicate session-object after values in object has been changed

2011-02-14 Thread Martin Grotzke
memcached-session-manager detects session modification as you describe it. It's a custom session manager that keeps sessions (additionally) in memcached: http:// code.google.com/p/memcached-session-manager Cheers, Martin Thomas Andraschko wrote: > > Thanks for your answer. > Yep that works bu

Re: Http Sessions

2011-02-01 Thread Martin Grotzke
y after the session was > modified? > > Thanks, > > Jonathan > -- Martin Grotzke http://www.javakaffee.de/blog/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Martin Grotzke
mail: users-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> > >> > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Martin Grotzke http://www.javakaffee.de/blog/

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Martin Grotzke
evel instead of within your webapp? >>> >>> - -chris >>> -BEGIN PGP SIGNATURE- >>> Version: GnuPG v1.4.10 (MingW32) >>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >>> >>> iEYEARECAAYFAk03a0wACgkQ9CaO5/Lv0PBikgCfYuyPaY/XyqkiPJP7MtqVsSCW >>> PkYAmgP7lRbxvV7ilDeKTV4BJwQKEmui >>> =dkUe >>> -END PGP SIGNATURE- >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >>> >>> > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Martin Grotzke http://twitter.com/martin_grotzke <http://twitter.com/#!/martin_grotzke>

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Martin Grotzke
Hi, I just got pinged by Reinwald (we're already on contact via email) regarding this issue. I created the memcached-session-manager ( http://code.google.com/p/memcached-session-manager/ ) for which Reinwald is trying to create a custom serializer/transcoder (memcached-session-manager, msm, basic

Re: How to force session replication per request in a Tomcat 6 cluster - SOLVED

2010-05-04 Thread Martin Grotzke
61 3 9621 2773 | Fax +61 3 9621 2776 > Exari Systems > Boston | London | Melbourne | Munich > www.exari.com > > Test drive our software online - www.exari.com/demo-trial.html > Read our blog on document assembly - blog.exari.com > > > > On 2 May 2010 07:21, Martin Grotz

Re: How to force session replication per request in a Tomcat 6 cluster

2010-05-01 Thread Martin Grotzke
.com > Level 7, 10-16 Queen Street, Melbourne 3000 Australia > Tel +61 3 9621 2773 | Fax +61 3 9621 2776 > Exari Systems > Boston | London | Melbourne | Munich > www.exari.com > > --------- > To unsubscribe, e

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-16 Thread Martin Grotzke
Hi Jon, On Mon, 2010-02-15 at 11:55 -0600, Jon Brisbin wrote: > I'm trying to figure out today how I can implement a Valve or something that > can store a session to a backend DB and reload that session on another Tomcat > instance similar to how the PersistentManager loads user's session after

Re: Using Context/Manager with custom nested element

2010-02-04 Thread Martin Grotzke
On Thu, 2010-02-04 at 12:27 +, Pid wrote: > On 03/02/2010 23:50, Martin Grotzke wrote: > > On Fri, 2010-01-29 at 14:58 +, Pid wrote: > >> On 29/01/2010 11:33, Martin Grotzke wrote: > >>> Hi Pid, > >>> > >>> what you des

Re: Using Context/Manager with custom nested element

2010-02-03 Thread Martin Grotzke
On Fri, 2010-01-29 at 14:58 +, Pid wrote: > On 29/01/2010 11:33, Martin Grotzke wrote: > > Hi Pid, > > > > what you describe is correct and works, I've implemented a Manager > > implementation that uses simple attributes until now (for memcached > > bas

Re: save session information

2010-02-03 Thread Martin Grotzke
atabase or file system > [1] http://code.google.com/p/memcached-session-manager/wiki/SerializationStrategies -- Martin Grotzke http://www.javakaffee.de/blog/ signature.asc Description: This is a digitally signed message part

Re: Using Context/Manager with custom nested element

2010-01-29 Thread Martin Grotzke
he Manager element, but this is not what one would want to do - the related attributes are spread between the Manager related attributes. Cheers, Martin On Fri, 2010-01-29 at 10:10 +, Pid wrote: > On 29/01/2010 00:31, Martin Grotzke wrote: > > Hi, > > > > is it somehow possible

Re: Using Context/Manager with custom nested element

2010-01-28 Thread Martin Grotzke
/www.mulesoft.com > > > On Thu, Jan 28, 2010 at 4:31 PM, Martin Grotzke < > martin.grot...@javakaffee.de> wrote: > > > Hi, > > > > is it somehow possible to have a custom nested element below the Manager > > element in server.xml/context.xml

Using Context/Manager with custom nested element

2010-01-28 Thread Martin Grotzke
's no possibility to achieve this. If someone could tell me that I'm wrong with this asumption I would be happy! :-) Thanx && cheers, Martin -- Martin Grotzke http://www.javakaffee.de/blog/ signature.asc Description: This is a digitally signed message part

Re: How to access webapp classes from a Context/Manager implementation (jar located in in $CATALINA_HOME/lib/)

2010-01-12 Thread Martin Grotzke
Hi Konstantin, On Mon, 2010-01-11 at 05:19 +0300, Konstantin Kolinko wrote: > 2010/1/11 Martin Grotzke : > > On Mon, 2010-01-11 at 02:54 +0300, Konstantin Kolinko wrote: > >> 2010/1/10 Martin Grotzke : > >> > Hi, > >> > > >> > Jan 10, 2010

Re: How to access webapp classes from a Context/Manager implementation (jar located in in $CATALINA_HOME/lib/)

2010-01-10 Thread Martin Grotzke
On Mon, 2010-01-11 at 02:54 +0300, Konstantin Kolinko wrote: > 2010/1/10 Martin Grotzke : > > Hi, > > > > Jan 10, 2010 2:57:51 PM org.apache.catalina.connector.CoyoteAdapter service > > SEVERE: An exception or error occurred in the container during

How to access webapp classes from a Context/Manager implementation (jar located in in $CATALINA_HOME/lib/)

2010-01-10 Thread Martin Grotzke
Hi, for some feature of the memcached-session-manager (memcached-based session failover, [1]) I want to access/reference webapplication classes (in WEB-INF/lib/) directly from my manager implementation (subclasses o.a.catalina.session.ManagerBase, registered via Context/Manager) when tomcat starts

Re: How to set header (directly) before response is committed

2009-08-31 Thread Martin Grotzke
On Mon, 2009-08-31 at 10:33 -0400, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin, > > On 8/30/2009 4:51 PM, Martin Grotzke wrote: > > On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: > > > >> Doi

Re: How to set header (directly) before response is committed

2009-08-31 Thread Martin Grotzke
On Mon, 2009-08-31 at 13:36 +0200, Martin Grotzke wrote: > http://github.com/magro/memcached-session-manager/blob/de2f6d6749226c685eef38b985411c00b11fe452/src/main/java/de/javakaffee/web/msm/CommitInterceptingActionHook.java > http://github.com/magro/memcached-session-manage

Re: How to set header (directly) before response is committed

2009-08-31 Thread Martin Grotzke
/SessionTrackerValve.java On Sun, 2009-08-30 at 17:34 -0700, Bill Barker wrote: > "Martin Grotzke" wrote in message > news:1251665502.4485.70.ca...@localhost.localdomain.tld... > > >On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: > >> -BEGIN

Re: How to set header (directly) before response is committed

2009-08-30 Thread Martin Grotzke
On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin, > > On 8/30/2009 1:50 PM, Martin Grotzke wrote: > > I found the ActionHook within the coyote response, so I'd try to wrap > >

How to set header (directly) before response is committed

2009-08-30 Thread Martin Grotzke
Hi, I want to set a cookie as late as possible from within a valve. So that the Set-Cookie header is set on the response and sent to the client the response must not be committed, so setting the cookie directly before the response is committed would be ideal from my point of view. I found the Act

Re: How to suppress error page for a response with only the status code set

2008-03-19 Thread Martin Grotzke
istopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin, > > Martin Grotzke wrote: > | Is there a way not to return error pages in these cases? > > You could set an in web.xml that produces no output for > these status codes. Something lik

Re: How to suppress error page for a response with only the status code set

2008-03-19 Thread Martin Grotzke
On Tue, 2008-03-18 at 16:42 -0700, Hassan Schroeder wrote: > On Tue, Mar 18, 2008 at 4:28 PM, Martin Grotzke > <[EMAIL PROTECTED]> wrote: > > > Only for the REST api (mapped to a specific path/url-pattern) we do not > > want to return these error pages but only c

Re: How to suppress error page for a response with only the status code set

2008-03-18 Thread Martin Grotzke
nly for the REST api (mapped to a specific path/url-pattern) we do not want to return these error pages but only codes. Cheers, Martin On Tue, 2008-03-18 at 17:15 -0400, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin, > > Martin Grotzke

How to suppress error page for a response with only the status code set

2008-03-18 Thread Martin Grotzke
Hi, we have a web application running in tomcat that returns error pages for status codes like e.g. 404 - absolutely fine. In the same servlet context we provide a RESTful API (using jersey [1]), that in most of the cases returns xml. In some cases responses with only the error code set (e.g. 400