Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
Hello Howard, the sniffer thing has nothing to do with original topic, I was just wandering that some requests were having session marked as new, which actually shouldn't be the case. Or in other word, the naive understanding of session.isNew method is that it should only return true once. But it d

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
On Mon, Apr 29, 2013 at 3:49 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Leon, > > > So your initial implementation was a Filter that marked each > HttpSession with the origin IP address (so you could get the TLD of > the u

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
Hello Andre, On Mon, Apr 29, 2013 at 10:13 AM, André Warnier wrote: > > Leon, > I apologise for insisting, but your initial post said : > "Background, I want to count sessions by top level domains..." > > > Yes, but @Runtime. Means that I want to know how many sessions from each tld are active

Re: getting the request that created the session

2013-04-28 Thread Leon Rosenberg
Answering my own email :-) On Sun, Apr 28, 2013 at 6:07 PM, Leon Rosenberg wrote: > Hello Konstantin, > thank you for your reply. > > > > Background, I want to count sessions by top level domains. I'm doing it >> now >> > in a combination of filter

Re: getting the request that created the session

2013-04-28 Thread Leon Rosenberg
2013/4/28 Martin Gainty > org.apache.catalina.valves.RemoteIPValve getRemoteIpHeader? > Martin > Thanks but I would like to stay container independent here. regards Leon

Re: getting the request that created the session

2013-04-28 Thread Leon Rosenberg
Hello Konstantin, thank you for your reply. > Background, I want to count sessions by top level domains. I'm doing it > now > > in a combination of filter and listener. Filter for new sessions, > putting a > > mark for already counted sessions, and listener for destroyed session. > > However, I w

getting the request that created the session

2013-04-27 Thread Leon Rosenberg
Hi, is there any possibility to get the first request from a session (or any request from a session) from the HttpSessionListener. Background, I want to count sessions by top level domains. I'm doing it now in a combination of filter and listener. Filter for new sessions, putting a mark for alread

Re: how to monitor the traffic through the connector

2013-04-04 Thread Leon Rosenberg
On Wed, Apr 3, 2013 at 5:19 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Leon, > > On 4/1/13 4:44 PM, Leon Rosenberg wrote: > >>> > >> > >> FWIW, I've found jco

Re: how to monitor the traffic through the connector

2013-04-01 Thread Leon Rosenberg
On Mon, Apr 1, 2013 at 9:52 PM, Jeffrey Janner wrote: > > -Original Message- > > From: Daniel Mikusa [mailto:dmik...@vmware.com] > > Sent: Monday, April 01, 2013 1:09 PM > > To: Tomcat Users List > > Subject: Re: how to monitor the traffic through the connector > > > > On Apr 1, 2013, at 1

Re: Creating user wise profile while profiling tomcat

2013-03-05 Thread Leon Rosenberg
Hello, this is something that isn't really possible in tomcat and I highly doubt that you will be able to profile any site in production at all with users on it. However, MoSKito (http://moskito.anotheria.net) is able to do it with MoSKito journeys ( http://demo.moskito.anotheria.net/moskitodemo/m

Re: Issue with Connections

2013-02-07 Thread Leon Rosenberg
Hello, >I'm not sure if the fix is in my application, network >settings or the OS file descriptor limits. what does ulimit -n say? regards Leon On Wed, Feb 6, 2013 at 7:57 PM, TVFoodMaps wrote: > Thanks for the information. I'm still a bit perplexed how to > increase/change the settings so

Re: Strange thread behavior in tomcat/jboss 7

2013-02-06 Thread Leon Rosenberg
Hello Andre, et al, On Wed, Feb 6, 2013 at 2:40 PM, André Warnier wrote: > Leon Rosenberg wrote: > ... > > > >> We have 105 threads in this state over multiple hours. >> >> Question: Could it be that we have connection leakage through keep-alive >> c

Re: Help in diagnosing server unresponsiveness

2013-02-03 Thread Leon Rosenberg
Hello Zoran, in a thread with so many replies, its partially hard to follow all replies. Have you resolved your problem already? Have you been able to exclude some of the most typical scenarios? I've read that you were using javamelody, have you tried something more insightful? regards Leon On S

Re: Tomcat slow during startup >= 7.0.28

2013-01-15 Thread Leon Rosenberg
Hello Conrad, are you running on virtual or real hardware? regards Leon On Mon, Jan 14, 2013 at 3:11 PM, Conrad Kostecki wrote: > Hi! > I've noticed, that Tomcat got much slower during startup. When using a > Version > 7.0.27 (+ Oracle JDK 7), it takes much longer. > > Jan 14, 2013 2:12:40 PM o

Re: Understanding RequestDispatcher

2012-11-07 Thread Leon Rosenberg
Hello Konstantin, On Wed, Nov 7, 2012 at 10:22 AM, Konstantin Kolinko wrote: > 2012/11/7 Leon Rosenberg : > > Hello, > > > > I have a pretty weird behavior I don't understand in a customers > > application. We have a drop-in monitoring webapp (moskito.anotheri

Re: Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled

2012-08-18 Thread Leon Rosenberg
Hello, have you googled for mmap failed for CEN and END part of zip file ? It produces a lot of results. Your error message point to a JIT problem, when JIT has no more space to compile it stops compiling and the application becomes slow. However, you already seems to set the proper options, so ma

Re: Happy Birthday, Chuck!

2012-07-27 Thread Leon Rosenberg
Maybe a little bit late, but still! Happy Birthday Chuck! Leon On Thu, Jul 26, 2012 at 10:46 PM, Rainer Jung wrote: > On 26.07.2012 15:46, Gregor S. wrote: >> >> Hi Chuck, >> >> thanks again for your valuable comments on this list, and keep it up! >> >> Cheers! > > > +2 ! > > Rainer > > > > -

Re: Bash script for monitoring status of the Tomcat server

2012-04-03 Thread Leon Rosenberg
or... you take moskito which comes with buildin threadmonitoring, configure your thresholds, and watch logfile with your bashscript for RED,YELLOW,ORANGE messages... regards Leon P.S. http://moskito.anotheria.net/moskitodemo/mui/mskThresholds On Tue, Apr 3, 2012 at 1:20 AM, Darryl Lewis wrote: >

Re: Tomcat Classloader leaks

2012-03-21 Thread Leon Rosenberg
On Wed, Mar 21, 2012 at 7:52 AM, Pid * wrote: > On 21 Mar 2012, at 02:41, Dale Ogilvie wrote: > >> When the application is unloaded by Tomcat, it >> should go away completely, regardless of (for example) unstopped threads >> in library foo. > > There is an aggressive thread killer option but it

Re: Do I Have Java Memory Fragmentation?

2011-12-19 Thread Leon Rosenberg
Do a simple math. If you give each VM up to 384M heap and if you add some 100 MB for permspace and overhead, you have a consumption of 500MB per VM. Take 1GB for OS needs, you have 15, and 15.000/500 makes it save to run 30 tomcat instances max. Since you experience the problems after some running

Re: Logging per webapp per instance

2011-12-19 Thread Leon Rosenberg
Hello, you can specify the logoutput as relative path: instead of log4j.appender.file.File=/var/log/webapp.log to log4j.appender.file.File=logs/webapp.log and link the local file to the desired destination. regards Leon On Mon, Dec 19, 2011 at 5:54 PM, Simon wrote: > Hi, > > Our webapp is packa

Re: tomcat session replication and domain change

2011-11-16 Thread Leon Rosenberg
Hello Chris, thank you for the answer, more inline. >> User logins on http://www.site.fr, a new session is created. User >> uses the site, attributes are written and read... User clicks a >> special link and is redirected to https://secure.site.com - >> secure.site.com (same webapp, different ser

tomcat session replication and domain change

2011-11-16 Thread Leon Rosenberg
Hello, I'm researching possible solutions for a following scenario and am not sure whether tomcat session replication can support it: My site is normally available under www.site.com, www.site.fr, www.site.de etc, for 22 different countries and a total of 500 domains (partners). Usually a user st

Re: making security constraints configureable

2011-11-09 Thread Leon Rosenberg
gt; >> Leon, >> >> One possible way to work around this would be to use an SSH tunnel or a >> VPN (like OpenVPN) to access your network from the remote locations. >> >> Dan >> >> >> On Sat, 2011-11-05 at 08:53 -0700, Leon Rosenberg wrote: >>&

Re: making security constraints configureable

2011-11-09 Thread Leon Rosenberg
1:59 PM, André Warnier wrote: >> >> Terence M. Bandoian wrote: >>> >>>  On 1:59 PM, Konstantin Kolinko wrote: >>>> >>>> 2011/11/3 Leon Rosenberg: >>>>> >>>>> I have a situation where an application is accessabl

Re: making security constraints configureable

2011-11-07 Thread Leon Rosenberg
Hello Konstantin, On Mon, Nov 7, 2011 at 4:30 AM, Konstantin Kolinko wrote: > 2011/11/3 Leon Rosenberg : >> I have a situation where an application is accessable from outside in >> staging and production environment, but shouldn't be open for public >> in staging envi

Re: making security constraints configureable

2011-11-05 Thread Leon Rosenberg
estricted environment you can then > control who can access to just that environment. > > Dan > > > On Thu, 2011-11-03 at 10:10 -0700, Leon Rosenberg wrote: >> Hello, >> >> I have a situation where an application is accessable from outside in >> staging and

making security constraints configureable

2011-11-03 Thread Leon Rosenberg
Hello, I have a situation where an application is accessable from outside in staging and production environment, but shouldn't be open for public in staging environment. What we did so far was, that we excluded everyone via web.xml: BASIC

Re: Tomcat Performance Turning.

2011-09-03 Thread Leon Rosenberg
t; > -Original Message- > From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Sent: Friday, September 02, 2011 3:19 PM > To: Tomcat Users List > Subject: Re: Tomcat Performance Turning. > > Hello Talha, > > On Fri, Sep 2, 2011 at 6:16 PM, Talha Fazal wrote:

Re: Tomcat Performance Turning.

2011-09-03 Thread Leon Rosenberg
Hello Christopher, On Fri, Sep 2, 2011 at 11:52 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Leon, > > On 9/2/2011 4:19 PM, Leon Rosenberg wrote: >> from my experience there is no need for apache in your >> setup anyway

Re: Tomcat Performance Turning.

2011-09-02 Thread Leon Rosenberg
can be symptoms of an application mis-managing its dbcp pools. > I WILL DEFINITELY TRY THIS OUT. THANKS! > > > From: Leon Rosenberg > To: Tomcat Users List > Sent: Friday, September 2, 2011 7:55 AM > Subject: Re: Tomcat Performance Turning. > > He

Re: Tomcat Performance Turning.

2011-09-02 Thread Leon Rosenberg
); regards Leon On Fri, Sep 2, 2011 at 4:21 PM, Talha Fazal wrote: > Hi Leon, > > Please see any answers in CAPS below. > > > > -Original Message- > From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Sent: Friday, September 02, 2011 9:06 AM > To: T

Re: Tomcat Performance Turning.

2011-09-02 Thread Leon Rosenberg
t; > Thanks! > > -Original Message- > From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Sent: Friday, September 02, 2011 8:35 AM > To: Tomcat Users List > Subject: Re: Tomcat Performance Turning. > > Hello Talha, > > from a quick glance at your post, do you have

Re: Tomcat Performance Turning.

2011-09-02 Thread Leon Rosenberg
Hello Talha, from a quick glance at your post, do you have the same 30 max threads limit in weblogic? Because sending 525 users through 2x30=60 max threads seems a little bottlenecky. Which software are you using to produce the load? Does it keepalive the connections? regards Leon On Fri, Sep 2,

Re: High Availability in Tomcat?

2011-05-09 Thread Leon Rosenberg
Hello, well, you provided not that many infos, but the usual way of doing this is to put multiple standalone tomcat instances behind a soft- or hardware loadbalancer (whatever your budget allows) and to make the app stateless, with cookie stickiness and failover. However, this will probably not ma

Re: [OT] Protecting against HTTP response splitting

2011-03-31 Thread Leon Rosenberg
On Fri, Apr 1, 2011 at 2:21 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ronald, > > On 3/31/2011 7:05 AM, Ronald Klop wrote: >> I would say that some proper input validation solves your problem. >> Does new URL(redirectURL).toString() give an exception on i

Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Leon Rosenberg
On Tue, Mar 15, 2011 at 4:20 AM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] >> Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s) > >> I'm sorry, I probably missed something, but why should 64 bit app

Re: OT: a good jmx browser?

2011-03-14 Thread Leon Rosenberg
thanx guys. Leon On Mon, Mar 14, 2011 at 11:34 AM, Mikolaj Rydzewski wrote: > > On Mon, 14 Mar 2011 11:28:58 +0100, Leon Rosenberg > wrote: > >> sorry for the off-topic-ness, but what jmx browser are you guys using if >> any. >> By jmx browser i mean something w

Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-14 Thread Leon Rosenberg
I'm sorry, I probably missed something, but why should 64 bit app on 64 bit os on 64 bit cpu be slower as 32 bit analog? regards Leon On Mon, Mar 14, 2011 at 6:45 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > David, > > On 3/14/2011 1:36 PM, David kerber wr

OT: a good jmx browser?

2011-03-14 Thread Leon Rosenberg
Hi, sorry for the off-topic-ness, but what jmx browser are you guys using if any. By jmx browser i mean something with a GUI where I can enter my server's adress and click through the tree of available values. thanks in advance Leon ---

Bug 49914 or I can't map to / anymore?

2011-03-01 Thread Leon Rosenberg
hi, concerning https://issues.apache.org/bugzilla/show_bug.cgi?id=49914. I have a filter which listens on /. This filter is used to manage different welcome pages for different urls on a multiurl site. It works like in (pseudocode) if (req.getServerName().equals("bla")) forward to blurp; if (req.

Re: connect servlet and jsp in tomcat

2011-02-18 Thread Leon Rosenberg
Hello, I think you first need to read this guide: http://www.catb.org/~esr/faqs/smart-questions.html regards Leon On Fri, Feb 18, 2011 at 12:12 PM, abcdef2 wrote: > > Hi, >  I install the tomcat in linux . > Is there any program or example that let me connect the > tomcat by servlet  and jsp ??

Re: [OT] OutOfMemoryError: GC overhead limit exceeded

2011-02-16 Thread Leon Rosenberg
On Wed, Feb 16, 2011 at 6:16 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Leon, > > On 2/16/2011 11:53 AM, Leon Rosenberg wrote: >> On Wed, Feb 16, 2011 at 5:37 PM, Caldarale, Charles R >> wrote: >>>

Re: [OT] OutOfMemoryError: GC overhead limit exceeded

2011-02-16 Thread Leon Rosenberg
On Wed, Feb 16, 2011 at 5:37 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: [OT] OutOfMemoryError: GC overhead limit exceeded > >> Here's what jmap reports this morning: > >> PS Old Generation >>    capacity = 134217728 (128.0MB)

Re: [OT] OutOfMemoryError: GC overhead limit exceeded

2011-02-15 Thread Leon Rosenberg
Your "old" is full. Either a memory leak or you simply need more (and old gen of 128Mb is virtually nothing). Increase :-) regards Leon On Tue, Feb 15, 2011 at 11:43 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > This is not Tomcat-related but I fig

Re: Tomcat 6 Memory Heap Limit

2011-02-15 Thread Leon Rosenberg
That depends... On linux I was able to assign a single process >30Gb, never tried more. I think your OS is your single limit. regards Leon On Tue, Feb 15, 2011 at 5:03 PM, Johnson, Rob E wrote: > If I move to the 64 bit how high can I push the size? > > > > > Rob Johnson MBA/IT > IT Specialist >

Re: Tomcat 6 Memory Heap Limit

2011-02-15 Thread Leon Rosenberg
Windows Server 2003 <- is this a 32 bit OS? And if not, are you using 64 bit java vm? regards Leon On Tue, Feb 15, 2011 at 4:51 PM, Johnson, Rob E wrote: > > Hi, > Apache Tomcat 6.0.20 > Windows Server 2003 > 50G RAM > I'm running Apache Tomcat 6.0 as a service on a Windows 2003 Server with > 50

CVE-2010-4476 - is it fixed or not?

2011-02-10 Thread Leon Rosenberg
Hi, short question, I read in the http://tomcat.apache.org/security-6.html that a possible DoS attack vulnerability has been fixed in Request class. Does that mean that CVE-2010-4476 is a) not an issue with 6.0.32++ b) not an issue unless the app uses Double.parseDouble c) probably not in issue in

Re: Monitoring production tomcat

2011-02-03 Thread Leon Rosenberg
There is clearly only one solution ;-) http://moskito.anotheria.net Ok, advertisement aside, there are multiple, but moskito provides most information of all the available tools. Feel free to ask offlist too. regards Leon On Thu, Feb 3, 2011 at 10:57 AM, Adam Lipscombe wrote: > > Folks > > > W

Re: Apache Process going high even after restart of backend server tomcat

2011-01-12 Thread Leon Rosenberg
So its time you investigate what this MuxServlet is doing... regards Leon On Wed, Jan 12, 2011 at 9:31 AM, Amol Puglia wrote: > Hello Rainer Jung, > > Thanks for the response. > > I can see there are many threads like below which are in sleep state. > > I have taken thread dumps 4 or 5 times and

Re: Need help in understanding tomcat thread dump

2011-01-11 Thread Leon Rosenberg
Hello, On Tue, Jan 11, 2011 at 1:11 PM, Amol Puglia wrote: > Hello Ronald, > > The major issue is apache process is goinfg very high and not coming down. what exactly is "going very high"? Do you mean that the number of apache processes increases? If so could it be, that your (or whosever) MUXS

Re: What is the healthy interval length for young gc?

2011-01-04 Thread Leon Rosenberg
On Tue, Jan 4, 2011 at 1:08 PM, Pid wrote: > > Having said that, you might also just try, instead: > >  -XX:+UseParallelGC >  -XX:+UseAdaptiveSizePolicy > I think UseParallelGC is default? I will try the second option. thanx Leon -

Re: What is the healthy interval length for young gc?

2011-01-03 Thread Leon Rosenberg
Hello Chuck, On Mon, Jan 3, 2011 at 3:23 PM, Caldarale, Charles R wrote: >> By increasing the space on the new gen alone, you may make Minor >> GC's less frequent. > > And by specifying fixed sizes for generations, you can upset the balance > between old and new, and prevent the GC logic from ad

Re: What is the healthy interval length for young gc?

2011-01-03 Thread Leon Rosenberg
On Mon, Jan 3, 2011 at 3:10 PM, Pid wrote: > On 1/3/11 1:10 PM, Leon Rosenberg wrote: >> Actually no, in my understanding both are independent. I mean the gc >> doesn't start "to copy over" if young is full, it simply cleans young. >> However, >> to quote

Re: What is the healthy interval length for young gc?

2011-01-03 Thread Leon Rosenberg
Hello André, On Mon, Jan 3, 2011 at 1:35 PM, André Warnier wrote: > Leon Rosenberg wrote: >> I understand that this is a very application specific issue, but I'm >> wondering which interval is perceived as 'healthy' for young >> collections? >> I have

What is the healthy interval length for young gc?

2011-01-03 Thread Leon Rosenberg
Hi, First of all Happy and Successful New Year to all subscribers. I understand that this is a very application specific issue, but I'm wondering which interval is perceived as 'healthy' for young collections? I have one customer's system which, at peak time, performs a young gc every 15 seconds.

Re: [ANN] New Tomcat committer: Christopher Schultz (schultz)

2010-11-22 Thread Leon Rosenberg
grats chris! :-) On Mon, Nov 22, 2010 at 9:48 PM, André Warnier wrote: > Mark Thomas wrote: >> >> On behalf of the Tomcat committers I am pleased to announce that >> Christopher Schultz (schultz) has been voted in as a new Tomcat committer. >> >> Please join me in welcoming him. >> > Wälcöme Chri

Re: [OT] How to obtain the id of the current process

2010-11-19 Thread Leon Rosenberg
On Thu, Nov 18, 2010 at 6:11 PM, André Warnier wrote: > Christopher Schultz wrote: > > Maybe we should turn the problem around though. > If Leon wanted the PID, it was obviously to do something with it later. > What do you do with a PID ?  Usually, one uses it to send a signal to a > process. act

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Leon Rosenberg
On Wed, Nov 17, 2010 at 11:41 PM, André Warnier wrote: > Leon Rosenberg wrote: >> >> Pid, Andre >> thanx. >> I will try both approaches. >> I will try the MX Bean first, this just seems to be more elegant ;) > > Typical Java thinking.. > Sure, let's

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Leon Rosenberg
On Thu, Nov 18, 2010 at 12:00 AM, Konstantin Kolinko wrote: > I like the following: >  int pid = Integer.parseInt( ( new > File("/proc/self")).getCanonicalFile().getName() ); doesn't work on a mac ;-( - To unsubscribe, e-mail: u

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Leon Rosenberg
line like > > java -Dpid=$$ program.java > and in the java program using the statement System.getProperty("pid"); > > If it works, it's cute, and certainly a lot less overhead. > > Credits : http://www.jguru.com/faq/view.jsp?EID=416212 > (last one) > > Leo

[OT] How to obtain the id of the current process

2010-11-17 Thread Leon Rosenberg
Hi, I have a ugly issue I'm sure many people on this list already solved. For multiple purposes I need pid's of processes, to stop/start them or ensure they are running. So far nothing spectacular. To obtain the pid I have following util: String[] cmd = { "/bin/bash", "-c", "echo $PPID" }; p = Ru

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Leon Rosenberg
On Sat, Nov 13, 2010 at 10:19 PM, Pid wrote: > On 12/11/2010 21:27, Leon Rosenberg wrote: >> P.S. I have a small tool that creates a diff of two subsequent >> histograms, i can share it if you need it. > > Post it to the wiki, perhaps? Which page would f

Re: Increase the MaxPermSize in Java

2010-11-13 Thread Leon Rosenberg
http://tinyurl.com/34hlbxl :-) regards Leon On Sat, Nov 13, 2010 at 11:39 AM, rujin raj wrote: > Hi, > > Where can i see the default value of MaxPermSize in java. I am using Tomcat > 5.5 and java 1.6 and the operating system is windows 2008 server. How can i > increase the maxpermsize in java in

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Leon Rosenberg
Hello Brian, maybe I missed half of the communication, but from the other half I got the feeling that you are shooting in the dark. Heap dumps are hard to decipher especially if the internals seems to be unknown ;-) When hunting a memory leak I setup a cron job that performs the same task once an

Re: Recommendations for (or against) a "hardware" load balancer

2010-11-11 Thread Leon Rosenberg
On Thu, Nov 11, 2010 at 3:22 PM, Mark Thomas wrote: > On 11/11/2010 14:12, Christopher Schultz wrote: >> All, >> >> I'm looking for a modest load balancer to perform SSL termination and >> work well with Tomcat's cookie- and URL-based sticky session mechanism. >> >> Does anyone have any recommenda

Re: how can i turn off "This is very likely to create a memory leak."

2010-10-28 Thread Leon Rosenberg
On Thu, Oct 28, 2010 at 4:19 PM, Simon Funnell wrote: > On 28/10/10 14:53, Leon Rosenberg wrote: >> >> ok, i revoke my "nevermind" message, even after I removed >> JreMemoryLeakPreventionListener >> I still get the warning. Even w

Re: how can i turn off "This is very likely to create a memory leak."

2010-10-28 Thread Leon Rosenberg
to stop it. This is very likely to create a memory leak. Oct 28, 2010 3:50:56 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 anyplace else except the server.xml to fix it? regards Leon On Thu, Oct 28, 2010 at 3:46 PM, Leon Rosenberg wrote: > nev

Re: how can i turn off "This is very likely to create a memory leak."

2010-10-28 Thread Leon Rosenberg
nevermind, found it, sorry for disturbing. On Thu, Oct 28, 2010 at 3:44 PM, Leon Rosenberg wrote: > Hello, > > I investigated an issue (another thread) with new error messages after > tomcat update: > > SEVERE: The web application [/moskitodemo] appears to have starte

how can i turn off "This is very likely to create a memory leak."

2010-10-28 Thread Leon Rosenberg
Hello, I investigated an issue (another thread) with new error messages after tomcat update: SEVERE: The web application [/moskitodemo] appears to have started a thread named [MoskitoMemoryPoolReader] but has failed to stop it. This is very likely to create a memory leak. After some research an

Re: How to start a daemon without getting the warning?

2010-10-27 Thread Leon Rosenberg
Hello Konstantin, On Wed, Oct 27, 2010 at 11:53 PM, Konstantin Kolinko wrote: > 2010/10/28 Leon Rosenberg : >> >> Well, that would just move the problem from stopping Timer to calling >> shutdown on  Executor, wouldn't it? >> > > The problem is with the T

Re: How to start a daemon without getting the warning?

2010-10-27 Thread Leon Rosenberg
On Wed, Oct 27, 2010 at 11:39 PM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] >> Subject: Re: How to start a daemon without getting the warning? > >> Meaning that I have to implement own thread registry for >> all started thread

Re: How to start a daemon without getting the warning?

2010-10-27 Thread Leon Rosenberg
On Wed, Oct 27, 2010 at 10:43 PM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] >> Subject: How to start a daemon without getting the warning? > >> to my knowledge this thread is a daemon. > > Which isn't really relevant

How to start a daemon without getting the warning?

2010-10-27 Thread Leon Rosenberg
Hello, I'm getting following warning with 6.0.29, after shutdown: SEVERE: The web application [/moskitodemo] appears to have started a thread named [MoskitoMemoryPoolReader] but has failed to stop it. This is very likely to create a memory leak. here's the snapshot of the code that starts the th

OT: Re: Ya gotta love it...

2010-10-02 Thread Leon Rosenberg
Congrats!!! Sent from my iPhone On 01.10.2010, at 20:32, David kerber wrote: > When you can fix a long standing bug simply by deleting 60 or 80 lines of > code and modifying 6 other lines. > > Of course, it's kind of embarrassing that I allowed that bug to creep in in > the first place... >

Re: [OT] Who's going to JavaOne?

2010-09-17 Thread Leon Rosenberg
On Fri, Sep 17, 2010 at 5:10 PM, Mark Thomas wrote: > I'll be there all week. I'm presenting on memory leaks based on the new > Tomcat 6/7 features. so new tomcat 6/7 features got memory leaks? :-) regards Leon > > Mark > > - >

Re: Hi Guys ... can some one tell what is hashcode in java

2010-09-15 Thread Leon Rosenberg
On Wed, Sep 15, 2010 at 6:44 PM, Antonio Petrelli wrote: > 2010/9/15 Pankaj D : >> What is DYH > > Following Chuck's idea... > http://lmgtfy.com/?q=dyh > so DYH is Doğan Yayın Holding in Turkey... :-) > Antonio > > - > To unsubs

Re: Class unloading in tomcat - PermGen Space

2010-09-14 Thread Leon Rosenberg
Hi shivani, reading the thread from beginning I would say that the easiest way to fix your particular problem is to write your own version of the jsp servlet which can than behave as you need. Take the source, make limitations adaptions (load jsps from own classloader for example, limit the number

Re: iCal4j and ThreadLocal

2010-08-31 Thread Leon Rosenberg
On Tue, Aug 31, 2010 at 10:51 AM, Ognjen Blagojevic wrote: Is there no way for me to kill these? >>> >>> Not easily.  Most uses of ThreadLocal seem to be blissfully (sometimes >>> arrogantly) unaware of thread-pooling mechanisms and app servers.  Ideally, >>> these ThreadLocal instances would

Re: How can i tell how much of allocated heap is being used?

2010-08-18 Thread Leon Rosenberg
jmap -heap Leon On Wed, Aug 18, 2010 at 8:56 PM, Tony Anecito wrote: > JDK 1.6 comes with visualvm or download the latest release of the tool from > it's > web site. > https://visualvm.dev.java.net/ > > Good Luck, > -Tony > > > > - Original Message > From: laredotornado > To: users@to

Re: How to configure a web app

2010-06-09 Thread Leon Rosenberg
http://www.configureme.org it supports hot updates of the configs, if you update the configs after the application has been started the configured parts will be reconfigured. regards Leon On Wed, Jun 9, 2010 at 2:46 PM, Thomas Kloeber wrote: > Dear List, > > I'm a newbie to Apache and Tomcat, so

Re: Out of Memory exception (hotspot compilation)

2010-06-02 Thread Leon Rosenberg
On Thu, Jun 3, 2010 at 1:54 AM, Leon Kolchinsky wrote: > Yep :) > You're right Charles. > > Thanks, > Leon >From Leon To Leon, an advice from personal experience and the golden rule of the tomcat user list, write it down in glowing red letters on the wall you are looking at most: Charles is ALWAY

Re: Tomat monitoring

2010-05-21 Thread Leon Rosenberg
On Fri, May 21, 2010 at 9:33 AM, wrote: > > Hi all, > > I work on JavaMelody and I can speak about the question of jconsole or > javamelody for Tomcat monitoring. > > The main differences between jconsole and javamelody is IMHO that jconsole > will > be used occasionally in QA or production for

Re: Tomat monitoring

2010-05-20 Thread Leon Rosenberg
be used as a monitoring tool? My >> belief is it can be used to provide snmp agent services, but I have no >> experience with it and I am curious to hear from others about it. >> >> Daniel Savard >> >> 2010/5/20, Leon Rosenberg : >> > On Thu, May 20,

Re: Tomat monitoring

2010-05-20 Thread Leon Rosenberg
7;s ok, we live in free countries and have the right to have own beliefs ;-) regards Leon > > Anyone that has used them in prod environement? >  <http://en.wikipedia.org/wiki/JConsole> > Özgür Özdemircili > http://www.acikkod.org > Code so clean you could eat off it > &g

Re: Tomat monitoring

2010-05-20 Thread Leon Rosenberg
Hello, never heard of javamelody before, but it looks like nagios ;-) Jconsole is definitely not a tool for monitoring. regards Leon On Thu, May 20, 2010 at 11:58 AM, Leon Rosenberg wrote: > Hello, > > never heard of javamelody before, but it looks like nagios ;-) > Jconsole is de

Re: Multiple catalina bases and monitoring each instance

2010-04-26 Thread Leon Rosenberg
On Fri, Apr 23, 2010 at 7:54 PM, Ziggy wrote: > Hi, > > I was refering to monitoring things like database connections, active > threads or sessions etc. > > Thanks if you want to have monitoring from outside the jvm, go for nagios/munin/big brother/sister or whatever. If you want to monitoring fr

Re: Tomcat does not honor acceptCount configuration variable

2010-04-09 Thread Leon Rosenberg
I remember a more or less public discussion some time ago, that the acceptCount setting is virtually worthless, because modern kernels simply ignore it. Leon P.S. By ignore I mean that ServerSocket.accept(100) has no effect. On Fri, Apr 9, 2010 at 2:10 PM, Timir Hazarika wrote: > Mark, I'm usin

Re: Tomcat scalability setting - need help please

2010-04-09 Thread Leon Rosenberg
On Fri, Apr 9, 2010 at 12:54 PM, wrote: > > And yes I used excel as the result. It is faster, but still can do better. I > wonder if I can increase the process time to less than 30 min to produce > results with millions of data. Currently, with only one person doing the > analysis and no one e

Re: Tomcat scalability setting - need help please

2010-04-08 Thread Leon Rosenberg
On Fri, Apr 9, 2010 at 2:28 AM, wrote: > As what I meant by exhaustive, I went to the extent of building my own cache > scheme and it worked, the process still long, but at least it does not kill > the other user, but if two or more user doing the >same huge process at the > same time it will

Re: Tomcat scalability setting - need help please

2010-04-08 Thread Leon Rosenberg
Hello Rendra, comments inline. On Thu, Apr 8, 2010 at 11:00 AM, Cin Lung wrote: > Dear All Dev > > Sorry if repost, I got an error from the mailing list server. > Can anyone help me with my problem? I have two biggest problems as follow: > > 1. Multi Connection Problem: > I have a web applicatio

Re: GC(JVM Heap usage) tool

2010-02-08 Thread Leon Rosenberg
Hi, if you mean this kind of monitoring: http://moskito.anotheria.net/moskitodemo/mui/mskShowProducersByCategory?pCategory=memory than all you need is here: http://infra.anotheria.net/confluence/display/MSK/HowTo+Embed+Moskito+WebUI+In+Your+Application regards Leon On Mon, Feb 8, 2010 at 6:07

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-26 Thread Leon Rosenberg
On Tue, Jan 26, 2010 at 4:50 PM, Jesse Klaasse wrote: > > Hi Chuck, thanks for your extensive comments about the JVM options.. > On a site note... I have made the observation that the JVM is performing best without any explicit gc settings. Most time explicit GC settings just cause havoc (fixes s

Re: New project to Apache Software Foundation

2010-01-25 Thread Leon Rosenberg
Just a note, it will probably be easier for you to start a project on java.net or sourceforge. regards Leon 2010/1/25 Kranti™ K K Parisa : > thanks Chuck, i shall check that in detail. > > Best Regards, > Kranti K K Parisa > > > > On Mon, Jan 25, 2010 at 8:00 PM, Caldarale, Charles R < > chuck.cal

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Leon Rosenberg
Hello Jesse, is the Workflow re-intrant? If yes: this is odd: you are iterating in a re-intrant action (i assume the action is re-intrant) over a shared variable? Vector vecOids = new Vector(); in the method: Iterator oidIterator = vecOids.iterator();

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Leon Rosenberg
P.S. Your tomcat is writing gc logs, please attach them next time. On Mon, Jan 25, 2010 at 12:31 PM, Leon Rosenberg wrote: > take a look on threads > ajp-8009-2 > ajp-8009-18 > ajp-8009-30 > ajp-8009-38 > > they are all seem to be either in an infinite loop: >        a

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Leon Rosenberg
take a look on threads ajp-8009-2 ajp-8009-18 ajp-8009-30 ajp-8009-38 they are all seem to be either in an infinite loop: at java.util.AbstractList$Itr.hasNext(AbstractList.java:339) at nl.indicia.vip.framework.util.Workflow.performWorkflowAction(Workflow.java:166) at nl.

Re: Securing Tomcat Applications from Reverse Engineering

2010-01-21 Thread Leon Rosenberg
Hello Kranti, first of all I strongly believe in open source software and don't like to obfuscate things. But well. 1. If you have internet connectivity on the target server you could only deploy a skeleton of your application and load the protect-worthly classes directly from your servers with o

Re: Securing Tomcat Applications from Reverse Engineering

2010-01-21 Thread Leon Rosenberg
Do you develop web applications and deliver them to the client, so that they can install your applications on their machines without your access to the machine? Leon 2010/1/21 Kranti™ K K Parisa : > Hi, > > Can anyone throw some light on this topic, seems it is possible to convert > the tomcat+to

Re: High Load examples?

2010-01-07 Thread Leon Rosenberg
of course there can't be a high-load thread without me, so here are my 2 cents: <2 cents> I'm working in high-performance high-portal environment since 2004, and i must say that starting with tomcat 5 i've never experienced any performance problems caused by tomcat itself. The number of concurrent

<    1   2   3   4   5   6   7   8   9   >