[Resin-interest] Session Clustering - Random loss of values.

2008-03-13 Thread Andrew Fritz
We have a 2 node cluster behind a commodity load balancer with sticky sessions. We are using PHP for front end pages, but all of our buisness objects are Java and are saved/loaded from our DB via Hibernate. We store php variables and objects in the php $_SESSION and that works great. We store j

Re: [Resin-interest] Session Clustering - Random loss of values.

2008-03-13 Thread Andrew Fritz
wrote: On Mar 13, 2008, at 8:39 AM, Andrew Fritz wrote: We have a 2 node cluster behind a commodity load balancer with sticky sessions. We are using PHP for front end pages, but all of our buisness objects are Java and are saved/loaded from our DB via Hibernate. We store php variable

Re: [Resin-interest] Session Clustering - Random loss of values.

2008-03-13 Thread Andrew Fritz
ted information. Andrew Andrew Fritz wrote: We are using cluster store assuming I've understood the config file/documentation. I'm sure that roll over isn't the problem. I've never seen a case were an active session moved from one server to the other UNLESS I shut down a serv

Re: [Resin-interest] Session Clustering - Random loss of values.

2008-03-13 Thread Andrew Fritz
We are actually doing basically that on every page of the site. I put the local host name in the footer. That is how I've confirmed. I'll try again. Let me get the model number on the load balancer and reply with that also. Andrew Serge Knystautas wrote: > Both the add and remove behavior you'

Re: [Resin-interest] Session Clustering - Random loss of values.

2008-03-13 Thread Andrew Fritz
clustered session to ensure that no matter which server serves the request, the session is available correctly? Or have I missed something? Andrew Andrew Fritz wrote: We are actually doing basically that on every page of the site. I put the local host name in the footer. That is how I've c

[Resin-interest] Smarty - 3.1.4, 3.1.5

2008-03-13 Thread Andrew Fritz
Sorry if this is the wrong list, but the Quercus list appears to be KIA. There is no mail in the archive and mail to [EMAIL PROTECTED] bounces. Now to my question/statement: Smarty works great in 3.1.3, but is broken in 3.1.4 and 3.1.5. I opens the template file and returns the contents unproce

Re: [Resin-interest] Smarty - 3.1.4, 3.1.5

2008-03-13 Thread Andrew Fritz
et vbulletin to work under quercus might be a more productive use of my time. :) -Chris On Mar 13, 2008, at 1:06 PM, Andrew Fritz wrote: Sorry if this is the wrong list, but the Quercus list appears to be KIA. There is no mail in the archive and mail to quercus- [EMAIL PROTECTED]

Re: [Resin-interest] Session Clustering - Random loss of values.

2008-03-14 Thread Andrew Fritz
case, our cluster is behaving as expected again. Andrew Scott Ferguson wrote: On Mar 13, 2008, at 12:24 PM, Andrew Fritz wrote: Just did about 30 refreshes and it always comes back web1, never web2. (request URL is entirely different, in a different domain in face; it is returnin

[Resin-interest] Cookie Domain

2008-03-19 Thread Andrew Fritz
I need to set the cookie-domain differently depending on whether I'm running local (for testing) or on our production servers. I haven't found an documentation about how I might do do that. Basically, if it is our production cluster I want a ".our.domain.com" cookie domain. Right now the server

Re: [Resin-interest] Cookie Domain

2008-03-20 Thread Andrew Fritz
So, to combine the to suggestions, is it possible to configure resin to send 2 cookies via the cookie-domain tag in the web.xml file? The conditional makes since at this point. Scott Ferguson wrote: On Mar 19, 2008, at 3:37 PM, Andrew Fritz wrote: I need to set the cookie

Re: [Resin-interest] Cookie Domain

2008-03-20 Thread Andrew Fritz
rew Scott Ferguson wrote: On Mar 20, 2008, at 1:30 AM, Andrew Fritz wrote: So, to combine the to suggestions, is it possible to configure resin to send 2 cookies via the cookie-domain tag in the web.xml file? The conditional makes since at this point. I'm not su

[Resin-interest] Illegal State Execption...

2008-03-27 Thread Andrew Fritz
Well, I was planning to make a general "going to production, anything I should tune in resin for prime time" post this morning, but turns out I have a crash related . We had our first outage related (as far as I can tell) to resin. (our site actually became available publicly outside of our be

[Resin-interest] Things to do for public launch

2008-03-27 Thread Andrew Fritz
Well, aside from preventing the crash/deadlock that occurred this morning, is there anything specific I should do to prep our cluster for "prime time" use? We've had relatively light usage of our 2 server cluster for the last few months with very few problems and clustering seems to work well

Re: [Resin-interest] Things to do for public launch

2008-03-27 Thread Andrew Fritz
ions? Andrew Scott Ferguson wrote: On Mar 27, 2008, at 8:38 AM, Andrew Fritz wrote: Well, aside from preventing the crash/deadlock that occurred this morning, is there anything specific I should do to prep our cluster for "prime time" use? We've had relatively light usa

Re: [Resin-interest] Things to do for public launch

2008-03-27 Thread Andrew Fritz
Never mind... RTFM...  Sorry. Andrew Andrew Fritz wrote: This is probably a stupid question (apologies in advance) but I can't figure out how to setup the password for the resin-admin app. I remember trying this before and none of the expected configs seem to work. I've gen

[Resin-interest] Memory and slowdown...

2008-04-03 Thread Andrew Fritz
Our production servers have their maximum memory set to 2048m. Everything is fine for a while. Eventually the java process ends up with all 2048m allocated. At this point server load starts going up and response time gets bad. Eventually request start timing out. Restarting the server fixes the

Re: [Resin-interest] Memory and slowdown...

2008-04-07 Thread Andrew Fritz
We got heap dump working. Didn't have it enabled in the config... I'm spending some time looking through the profiles and heap dump now to see if I can see anything of interest. Andrew Scott Ferguson wrote: On Apr 2, 2008, at 8:21 AM, Andrew Fritz wrote: Our

Re: [Resin-interest] Memory and slowdown...

2008-04-07 Thread Andrew Fritz
IL PROTECTED]> wrote: On Apr 2, 2008, at 8:21 AM, Andrew Fritz wrote: > Our production servers have their maximum memory set to 2048m. > Everything is fine for a while. Eventually the java process ends up > with > all 2048m allocated. At this point server load starts going

Re: [Resin-interest] Memory and slowdown...

2008-04-08 Thread Andrew Fritz
Well, based on previous advice we are inspection both the profile and heap dump. Both point to a problem with one of our business objects (referenced previous: ShallowSongBO) so I implemented a simple instance counter on that object. There is a static variable. It is incremented in the constr

Re: [Resin-interest] Memory and slowdown...

2008-04-08 Thread Andrew Fritz
008, at 7:55 AM, Andrew Fritz wrote: Well, based on previous advice we are inspection both the profile and heap dump. Both point to a problem with one of our business objects (referenced previous: ShallowSongBO) so I implemented a simple instance counter on that object. There is a

[Resin-interest] Profiling...

2008-04-08 Thread Andrew Fritz
I'm attempting to profile our dev server to try to get a better idea of what is going on (see my other thread). I'm using jprofiler from jetbrains. I've added the: -Xrunjprofiler:port=9998 to the resin start options. I found the option in a mail thread. I can find next to no documents on how to e

Re: [Resin-interest] Profiling...

2008-04-08 Thread Andrew Fritz
how I might add a jar to the boot class path? I think that is all that is missing. Andrew Joe Dane wrote: On Apr 8, 2008, at 10:46 AM, Andrew Fritz wrote: I found the option in a mail thread. Jprofiler is a commercial product. That option won't work unless you&#x

Re: [Resin-interest] Profiling...

2008-04-08 Thread Andrew Fritz
o      use shared class data if possible (default)     -Xshare:on      require using shared class data, otherwise fail. The -X options are non-standard and subject to change without notice. On Apr 8, 2008, at 15:00 , Andrew Fritz wrote: I have a licenses... After

Re: [Resin-interest] Profiling...

2008-04-08 Thread Andrew Fritz
#x27;ll try the verbose option. Thanks! Andrew Knut Forkalsrud wrote: Andrew Fritz wrote: Regardless, I still get a "Could not find agent library on the library path or in the local directory: jprofilerti". The profiler likely comes with a binary, a file whose name end i

Re: [Resin-interest] Profiling...

2008-04-09 Thread Andrew Fritz
iterations, everything worked. Andrew Knut Forkalsrud wrote: Andrew Fritz wrote: Regardless, I still get a "Could not find agent library on the library path or in the local directory: jprofilerti". The profiler likely comes with a binary, a file whose name end in .so, at

[Resin-interest] Resin + JProfiler: Howto

2008-04-09 Thread Andrew Fritz
Just threw my notes up for posterity if anyone else tries to do this. It wasn't hard, but I figure I'll save someone else the headache of having to sort it out. http://andrew.fritztech.com/blog/middleman/2008/04/jprofiler-resin.html ___ resin-interes

Re: [Resin-interest] Resin + JProfiler: Howto

2008-04-09 Thread Andrew Fritz
Feel free. Like I said, it wasn't hard just took a few pointers that were not obvious so no reason anyone else should have to jump through the hoops again. Andrew Emil Ong wrote: On Wed, Apr 09, 2008 at 01:51:52PM -0500, Andrew Fritz wrote: Just threw my notes up for post

Re: [Resin-interest] re write for resin newbie

2008-04-10 Thread Andrew Fritz
Put this in resin-web.xml or web.xml: Of course there are other variation. Do you want an optional trailing slash, etc. Turn on fine logging in your resin.xml file. It will print the raw URL requested when the request comes in and later the request as delivered to whatever handles it (

Re: [Resin-interest] re write for resin newbie

2008-04-10 Thread Andrew Fritz
ile for each virtual server, in the WEB-INF directory. Andrew Fritz-2 wrote: Put this in resin-web.xml or web.xml: Of course there are other variation. Do you want an optional trailing slash, etc. Turn on fine logging in your resin.xml file. It will print the raw URL requested

[Resin-interest] Rewrite and fixing query strings...

2008-04-11 Thread Andrew Fritz
Long story short, somehow urls with & instead of & made it out the door. I'm attempting to make these work in a sane manner via a rewrite rule. In the end I will use the "" tag to transform the URLs in place, but for testing, I'm using a "" tag so I can see the result. For now I'm just trying t

Re: [Resin-interest] Remote debugging Resin 3.1

2008-04-18 Thread Andrew Fritz
I am using remote debugging (and profiling also) with IntelliJ. I assume it is tool agnostic. Here are the relevant JVM args from my server.conf file: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9080 Don't specify the same port on the watchdog start or things will fail si