Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
app.js.map with originalRemoteAddr '198.41.242.13' On Tue, Jun 15, 2021 at 12:19 AM Leon Rosenberg wrote: > ok, quick update: it didn't work with 198\.41\..* or .* at first, but it > worked after I changed attribute name from trustedProxies to > internalProxies. > kr > Leon > >

Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
ok, quick update: it didn't work with 198\.41\..* or .* at first, but it worked after I changed attribute name from trustedProxies to internalProxies. kr Leon On Mon, Jun 14, 2021 at 11:52 PM Leon Rosenberg wrote: > > > On Mon, Jun 14, 2021 at 10:57 PM Christopher Schul

Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
On Mon, Jun 14, 2021 at 10:57 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Leon, > > On 6/14/21 16:26, Leon Rosenberg wrote: > > Thanks for the response Mark, > > > > quick question, do I have to add all cloudflare ips? They kindof > > di

Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
Thanks for the response Mark, quick question, do I have to add all cloudflare ips? They kindof distributed along the world... Can I mark the thrustworthlyness by a header instead? kr Leon On Mon, Jun 14, 2021 at 9:45 PM Mark Thomas wrote: > On 14/06/2021 17:01, Leon Rosenberg wrote: >

Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
hi, I have a tomcat 8.5.15 behind an apache behind cloudflare. I am trying to "see" the user's ip in my logs. When I print out the headers I see that I have headers in the request CF-Connecting-IP and X-Forwarded-For with real user's up, say 93.72.251.122. But when I make a request to

Re: Tomcat Bandwidth Utilization Tool

2019-08-30 Thread Leon Rosenberg
MoSKito (http://www.moskito.org) does visualize the stats from GlobalRequestProcessor: http://burgershop-hamburg.demo.moskito.org/burgershop/moskito-inspect/mskShowProducer?pProducerId=GlobalRequestProcessor You can see the bytes sent/received from every connector. regards Leon On Fri, Aug 30,

Re: [OT] Question about the longevity of Java ..

2019-03-25 Thread Leon Rosenberg
Hi John, personally I do not believe that this will ever happen, but for the sake of an argument lets assume someone finally builds the skynet and assigns to it the task to calculate PI with most precision. The skynet then takes over and diverts all resources in the universe to PI calculation

Re: Number of tomcat downloads

2019-02-05 Thread Leon Rosenberg
, 2019 at 11:25 AM Leon Rosenberg wrote: > Thank you very much Igal, Marc and Emmanuel. > > regards > Leon > > On Tue, Feb 5, 2019 at 11:23 AM Emmanuel Bourg wrote: > >> Le 05/02/2019 à 00:48, Leon Rosenberg a écrit : >> >> > I vaguely remember Mar

Re: Number of tomcat downloads

2019-02-05 Thread Leon Rosenberg
Thank you very much Igal, Marc and Emmanuel. regards Leon On Tue, Feb 5, 2019 at 11:23 AM Emmanuel Bourg wrote: > Le 05/02/2019 à 00:48, Leon Rosenberg a écrit : > > > I vaguely remember Marc naming some figures for number of tomcat > downloads > > sofar, but I c

Number of tomcat downloads

2019-02-04 Thread Leon Rosenberg
Hi, I vaguely remember Marc naming some figures for number of tomcat downloads sofar, but I couldn't find anything in the state of the cat slides. I checked on the website, but all I found was this: " Tomcat has been downloaded more than 10 million times: assuming even a 1% production adoption

[OT] Happy New Year

2018-12-31 Thread Leon Rosenberg
I wish a happy and sound new year to all of the tomcat family! See, Hear and Read all of you next year! Leon

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread Leon Rosenberg
You should provide at least Java version. Out of the blue you should have at least 2Gb for the OS, so if your server is having 16 Gb, your Xmx and MaxPermSize shouldn't be more then 14 G TOGETHER. Of course this only applies to versions of java below 1.8, because there is no permspace in modern

Re: Compression for Resources served through DefaultServlet

2018-11-26 Thread Leon Rosenberg
On Mon, Nov 26, 2018 at 10:27 PM Mark Thomas wrote: > On 26/11/2018 21:19, Leon Rosenberg wrote: > > Good time of the day, > > > > I am debugging bad page insights reported by google for a mobile versus > > desktop version of our site and I'm seeing that the s

Compression for Resources served through DefaultServlet

2018-11-26 Thread Leon Rosenberg
Good time of the day, I am debugging bad page insights reported by google for a mobile versus desktop version of our site and I'm seeing that the static resources, served by the DefaultServlet (aka files) aren't compressed, versus to dynamic resources served by a servlet. Tomcat version in

Re: Number of Web Applications in one Tomcat

2018-10-29 Thread Leon Rosenberg
Clearly one webapp per tomcat. Makes everything easier. Also, if your apps aren't really tiny, the memory overhead of tomcat is minimal compared to the advantages. Leon On Mon, Oct 29, 2018 at 9:00 AM Ahmed, Tarek wrote: > Hi all, > > TLDR? Do you deploy one web application per tomcat instance

Re: Tomcat Binary Connector

2018-09-22 Thread Leon Rosenberg
Hey Anthony, your last comment seems to indicate that you disagree with tomcat being fixed requirement. Personally I feel opening a port and implementing all the protocol handling completely negates of advantages of having tomcat in your application. So maybe you should force a change in your

Re: ApacheCon NA is in just under 3 weeks

2018-09-05 Thread Leon Rosenberg
I think that would be nice. Leon On Wed, Sep 5, 2018 at 12:40 PM Mark Thomas wrote: > All, > > ApacheCon North America starts in Montréal in just under three weeks. > There are 2 days of Tomcat content starting on the Monday. If you > haven't registered, now would be a good time to do so ;) > >

Re: [OT] What can prevent sessions from timeouting apart from real requests

2018-08-27 Thread Leon Rosenberg
anup (especially of "other" sessions) > > Another approach may be to snapshot a memory dump and investigate the > session objects, e.g. with the Eclipse Memory Analyze Tool (aka MAT). > > Greetings > > Guido > > >-Original Message- > >From: Leon Ros

[OT] What can prevent sessions from timeouting apart from real requests

2018-08-24 Thread Leon Rosenberg
Hi, one of the systems we are consulting has encountered a strange problem. The sessions will build up indefinitely but never expire. Then, at one point (at 02am in the night, 19K sessions would drop at once). Of course the simplest explanation would be that someone is actively requests something

Re: Tomcat stop and start using bash script

2018-06-27 Thread Leon Rosenberg
use -force option bin/shutdown.sh -force regards Leon On Wed, Jun 27, 2018 at 5:51 PM dhanesh1212121212 wrote: > Hi All, > > Trying to stop and start tomcat in production using bash script for war > deployment. > > If tomcat not stopped properly then how we can kill the correct process and >

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Leon Rosenberg
Hi Mark, I agree with you that the complaint about version number is rather a minor one, however, I've had the same situation as one of our projects had to pass through a PCI Compliance test, and this is what they really test for. regards Leon On Wed, May 2, 2018 at 9:42 PM, Mark Thomas

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Leon Rosenberg
Hi Cris, try to add following to your web.xml 404 /error404.html regards Leon On Wed, May 2, 2018 at 9:27 PM, Berneburg, Cris J. - US wrote: > We are getting dinged by a vulnerability scan for the default not-found > error page being returned

Re: [ANN] TomcatCon Schedules Announced

2018-04-30 Thread Leon Rosenberg
Hey Mark et al, I noticed that for the roadshow only the general track is published but not times for the single tracks... do you know any details? Also concerning the length of a talk, is it also 45 minutes? regards Leon On Mon, Apr 30, 2018 at 11:10 AM, Mark Thomas wrote: >

Re: WebApp Caching Broken

2018-03-05 Thread Leon Rosenberg
Hello, can you explain what you mean by 'caching' ? regards Leon On Mon, Mar 5, 2018 at 10:26 PM, Kenneth Taylor < kenneth.tay...@dataexpress.com> wrote: > We are having a serious problem with Tomcat (8.5). Twice it has decided > to PERMANENTLY cache one of our webapps. We are unable to

Re: Requests for Tomcat-related topics for ApacheCon North America (Montréal, 24-27 Sept 2018)

2018-02-27 Thread Leon Rosenberg
On Mon, Feb 26, 2018 at 4:07 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > All, > > The CFP is open through the end of March, so if anyone is interested > in giving a talk in Montréal, please don't be shy and sign-up. > >

Re: GC allocation failure

2018-01-08 Thread Leon Rosenberg
On Mon, Jan 8, 2018 at 10:26 AM, Mark Thomas wrote: > On 08/01/18 15:16, Christopher Schultz wrote: > > > > >> Therefore, the first time that the GC runs, the process can take > >> longer. Also, the heap is more likely to be fragmented and require > >> a heap compaction. To

Re: GC allocation failure

2018-01-08 Thread Leon Rosenberg
On Mon, Jan 8, 2018 at 10:16 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Suvendu, > > On 1/5/18 6:46 AM, Suvendu Sekhar Mondal wrote: > > I really never found any explanation behind this "initial=max" heap > > size theory

[OT] JavaOne anyone?

2017-10-01 Thread Leon Rosenberg
Hi, is anyone from the list at the java1? regards Leon

Re: [ANN] Webinar: Tomcat and MoSKito

2017-08-24 Thread Leon Rosenberg
;> >> The Tomcat community is hosting a webinar by Leon Rosenberg: >> >> Monitoring your tomcat web-application in production with MoSKito. Get >> full control of threads, memory and execution time usage of the JVM and >> your code. >> >> Topic:

Re: Where Tomcat webapp contexts live on Debian

2017-08-22 Thread Leon Rosenberg
On Tue, Aug 22, 2017 at 10:55 PM, Emmanuel Bourg <ebo...@apache.org> wrote: > On 08/16/2017 09:24 AM, Leon Rosenberg wrote: > > Debian has a long tradition of doing things in a very special way when it > > comes to java. Long enough they shipped GnuJ as standar

Re: Tomcat server apparently bouncing up and down

2017-08-19 Thread Leon Rosenberg
Since you told the context is rather huge, have you checked gc times? A long running full gc can block the machine completely resulting in the up/down behaviour from outside. GC options depend on JVM version I use: export JAVA_OPTS="$JAVA_OPTS -XX:+DisableExplicitGC -verbose:GC

Re: Tomcat memory

2017-08-17 Thread Leon Rosenberg
Fady, one thing, analyzing heap dumps is hard especially a 10GB dump, you will need at least 40 Gb of memory an about 10 hours to start jhat. What is fast is analyzing a histogram. A histogram is a list of all classes in your JVM and amount of memory they use. It is very easy to use: jmap

Re: [OT] Re: Where Tomcat webapp contexts live on Debian

2017-08-16 Thread Leon Rosenberg
ings and where, and we have documented it. Our > usage of Tomcat may be simple, but I cannot recall exactly how many years > ago we last had a Tomcat issue which had to do with how Debian installs it > on the disk. > Other people's mileage may vary, but I thought it was worth mention

Re: Where Tomcat webapp contexts live on Debian

2017-08-16 Thread Leon Rosenberg
Debian has a long tradition of doing things in a very special way when it comes to java. Long enough they shipped GnuJ as standard JVM with a debian distribution, a piece of garbage that wasn't able to start simplest of java programs. But there has been an as long tradition to reply to every

Re: Automatically compressing localhost_access_log after rotation

2017-08-03 Thread Leon Rosenberg
On Thu, Aug 3, 2017 at 8:16 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Martin, > > On 8/3/17 5:47 AM, Martin Knoblauch wrote: > > is there a way to compress the localhost_access_log.#.txt file > > automatically after

Re: Tomcat on macOS

2017-05-20 Thread Leon Rosenberg
On Sat, May 20, 2017 at 8:56 AM, Israel Timoteo wrote: > > > I have an additional question: > > 1) Would there be any recommendations for not having one Tomcat instance > per physical server? > Only if your application can't utilise resources properly. If your application fails

Re: TomcatCon Meetup (UPDATE)

2017-05-18 Thread Leon Rosenberg
Awesome, thanks! Sent from my iPhone > On 18. May 2017, at 14:58, Huxing Zhang wrote: > > Hi All, > > The pic for the meetup yesterday can be found here: > > https://www.dropbox.com/s/vu02lnrs77up5mc/IMG_0591.JPG > >> On Wed, May 17, 2017 at 8:46 PM, Coty Sutherland

Re: [OT] ApacheCon anyone?

2017-05-12 Thread Leon Rosenberg
On Fri, May 12, 2017 at 7:25 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Leon, > > On 5/12/17 6:04 AM, Leon Rosenberg wrote: > > Just wondering if there are any plans for an informal get-

[OT] ApacheCon anyone?

2017-05-12 Thread Leon Rosenberg
Just wondering if there are any plans for an informal get-together at the apache con in Miami next week? I know that Mark, Christopher and some others are there as speakers, so maybe an informal meetup, where non-commiters buy commiters a pizza or burger and have some chat? regards Leon

Re: Strange wait time in my application - Tomcat 7.0.67

2016-10-03 Thread Leon Rosenberg
, 2016 at 4:21 PM, Tullio Bettinazzi <tullio0...@live.it> wrote: > Please help me to understand diffrences beween Moskito and standard > profilers. > > Tks > > Tullio > > > ____ > Da: Leon Rosenberg <rosenberg.l...@gmail.com&

Re: Strange wait time in my application - Tomcat 7.0.67

2016-10-03 Thread Leon Rosenberg
Hi Tullio, you could download and integrate MoSKito -> http://www.moskito.org. After integration as described here blog.anotheria.net/msk/the-complete-moskito-integration-guide-step-1/ or here: http://www.moskito.org/integration.html you can start your application and setup a tracer. A tracer,

Re: question on Java / Tomcat / GC

2016-07-14 Thread Leon Rosenberg
On Thu, Jul 14, 2016 at 9:15 PM, Anthony Biacco wrote: > On Thu, Jul 14, 2016 at 11:41 AM, André Warnier (tomcat) > wrote: > > > > Well, i'm not a GC expert by any stretch of the imagination, but i think > with your PrintGC options the "GC (System.gc())" and

Re: Memory Problem

2016-05-09 Thread Leon Rosenberg
Well the most obvious way to determine it is to lower your settings unless it works, then lower it a little bit more. regards Leon On Mon, May 9, 2016 at 6:13 PM, Edwin Quijada wrote: > I am getting this error on my server > Java HotSpot(TM) 64-Bit Server VM

Re: OT if/else or not if/else

2016-04-25 Thread Leon Rosenberg
On Mon, Apr 25, 2016 at 5:21 PM, Dougherty, Gregory T., M.S. < dougherty.greg...@mayo.edu> wrote: > > > Yes, we do, because, well, it is more informative. :-) > > if (a) Š > else if (b) Š > else if (c) Š > > Says you have three mutually exclusive options, and implies that a is more > likely /

Re: OT if/else or not if/else

2016-04-25 Thread Leon Rosenberg
On Mon, Apr 25, 2016 at 4:13 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Leon, > > On 4/22/16 12:24 PM, Leon Rosenberg wrote: > > Hi guys, > > > > I would always choose the case wi

OT if/else or not if/else

2016-04-22 Thread Leon Rosenberg
Hi guys, this is completely off-topic ;-) I was wondering if using if/else is not actually slowing down your code. Lets say I have three possible conditions, A, B and C, which are exclusive. My native approach would be: if (A){...} if (B){...} if (C){...} now some people would 'optimize' it as

Re: [OT] Monitoring Tomcat

2016-03-29 Thread Leon Rosenberg
On Tue, Mar 29, 2016 at 4:57 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Leon, > > On 3/28/16 6:34 PM, Leon Rosenberg wrote: > > Of course MoSKito: http://www.moskito.org > > > > Ta

Re: Monitoring Tomcat

2016-03-28 Thread Leon Rosenberg
Of course MoSKito: http://www.moskito.org Take a look at the step by step guide (start with step 1 not 0). blog.anotheria.net/msk/the-complete-moskito-integration-guide-step-1/ regards Leon On Tue, Mar 29, 2016 at 12:23 AM, Edwin Quijada wrote: > Hi! > I have an

Re: Why the tomcat source code uses obsolete ant build configuration? why not maven or gradle?

2016-03-28 Thread Leon Rosenberg
Hi Raja, I think this question arises on this user list every now and then. I even think there have been some effort to create a pom.xml for tomcat, but without great success (after few replies you can imagine why). Personally I totally understand you. From what I see ant is totally gone and has

Re: Monitoring Connections

2015-10-08 Thread Leon Rosenberg
On Wed, Oct 7, 2015 at 11:59 PM, Aurélien Terrestris wrote: > Hi Jamie, > > > If you enjoy live monitoring, you need to have a look on Christopher's > presentation ( > >

Re: [Hardening] Running tomcat under a specific account

2015-02-25 Thread Leon Rosenberg
Hello Jan, that would be better yes. For example some time ago, there were a virus that would place a modified jsp in a webapp and try to access further data from it. If the user, the tomcat runs under, would have limited permission, such a malware would have less chances to actually do something

Re: Need Help!

2015-01-28 Thread Leon Rosenberg
On Wed, Jan 28, 2015 at 8:48 PM, David kerber dcker...@verizon.net wrote: On 1/28/2015 2:03 PM, Hyder Hashmi wrote: Hi, I am working on a small project and need your help in this. I have a java program in which I read and write in a file that is located in the current folder. Now I have

Re: SAML 2.0 with container managed authentication in Tomcat

2014-09-13 Thread Leon Rosenberg
On Thu, Sep 11, 2014 at 2:26 PM, Maarten van Hulsentop maar...@vanhulsentop.nl wrote: Dear Tomcat-users, We are investigating the best way to support SAML 2.0 (SP) authentication with our application. Our application is using container managed authentication provided by Tomcat, and works

Re: Question on Thread Local

2014-09-02 Thread Leon Rosenberg
From practical point of view ThreadLocal is a huge hashmap directly in the ThreadClass where you can store a map of variables. Something like Thread.MapThreadId, MapString, Object, in which you can access variables that are 'attached' logically to the current Thread. In practice its a nice way to

Re: Question on Thread Local

2014-09-02 Thread Leon Rosenberg
at 10:22 PM, Leo Donahue donahu...@gmail.com wrote: On Tue, Sep 2, 2014 at 3:00 PM, Leon Rosenberg rosenberg.l...@gmail.com wrote: From practical point of view ThreadLocal is a huge hashmap directly in the ThreadClass where you can store a map of variables. Something like

Re: VERY HIGH TRAFFIC TUNING

2014-07-10 Thread Leon Rosenberg
answering only to the one directed at me (or so I think): On Thu, Jul 10, 2014 at 4:09 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, If you have very fast connections, go for a smaller amount. If you have keepalive and

Re: VERY HIGH TRAFFIC TUNING

2014-07-09 Thread Leon Rosenberg
On Wed, Jul 9, 2014 at 4:47 AM, Hernán Marsili her...@cmsmedios.com wrote: Hi, Hello Hernán, For the past 4 years we has been working with a 'stable' configuration in which we put APACHE in front of TOMCAT7 (previously Tomcat6) with mod_jk connector. We usually serve high traffic sites

Re: CATALINA_PID != real PID

2014-05-23 Thread Leon Rosenberg
Hello Arseniy, I don't know why it doesn't work for you, it works for me: export CATALINA_PID=/opt/app/tomcat7/pid */opt/app/tomcat7*$ more pid 5856 ps aux | grep 5856: thales5856 0.0 43.6 642472 228788 ? Sl Apr28 29:19 /opt/java/jdk1.7.0_45/bin/java

Re: CATALINA_PID != real PID

2014-05-23 Thread Leon Rosenberg
The usual Heisenbug. regards Leon On Fri, May 23, 2014 at 1:24 PM, Арсений Зинченко setev...@gmail.comwrote: Hi, Leon. Thanks for replay. Don't know why - but now it works good :-)

Re: Application monitoring

2014-05-19 Thread Leon Rosenberg
David, I already asked you why you are reinventing the wheel, but it seems, for fun, which is a perfectly ok reason though. However, maybe you'll find some insights on how other people do it here: http://blog.anotheria.net/msk/the-complete-moskito-integration-guide-step-6-moskito-control/and

Re: Application monitoring

2014-05-19 Thread Leon Rosenberg
, May 19, 2014 at 3:01 PM, David kerber dcker...@verizon.net wrote: On 5/19/2014 8:52 AM, Leon Rosenberg wrote: David, I already asked you why you are reinventing the wheel, but it seems, for fun, which is a perfectly ok reason though. However, maybe you'll find some insights on how other

Re: Tomcat dependency on application server

2014-05-17 Thread Leon Rosenberg
Really, there are about 1 gazzillion valid ways to setup an application consisting of n number of tomcats and m number of jbosses, running in same or separate processes/vms/datacenters and doing stuff. Maybe you should first find out, what your deployment architecture is, and what your app does.

Re: Application monitoring

2014-05-16 Thread Leon Rosenberg
Hello David, I will not ask you why you are reinventing the wheel (ok, I lied, why are you reinventing the wheel?). You have multiple options available: 1) You could use jmx and publish your information as jmx beans. 2) You could use rmi between you 'collector' and the target apps. 3) You could

Re: Slow page response time in tomcat 8.0.5

2014-05-16 Thread Leon Rosenberg
Hello Hariprasad, you could embed moskito webui into your application, annotate your tags with @Monitor and you would see how long they execute and what is the execution path, which tags are called during an http request how often and how long they execute. You can follow this link for more

Test Mail, Please Ignore

2014-05-11 Thread Leon Rosenberg
I am wondering that I don't see any mails for a whole day on the list, this is pretty unusual, so I try with a TestMail Leon

Re: No activity on tomcat.users since Tues?

2014-05-11 Thread Leon Rosenberg
I have even checked my email settings. But I've got some mails that google bounces back some of the tomcat-user's emails. I am not sure if its just me or google or the list. regards Leon On Sat, May 10, 2014 at 8:54 PM, Tim Watts t...@cliftonfarm.org wrote: Markmail seems to confirm this but

Re: catalina.out is 13G

2014-04-22 Thread Leon Rosenberg
Hello Randhir, whatever revert means. However, if you remove the file the place will be occupied on most *'nix system until a process restart. You will probably have to restart your server to free this mount point's storage anyway. regards Leon On Tue, Apr 22, 2014 at 4:20 PM, Randhir Singh

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Leon Rosenberg
On Tue, Apr 15, 2014 at 4:51 PM, Shanti Suresh sha...@umich.edu wrote: Greetings, Hello Shanti, Chris' presentation on monitoring Tomcat is really nice work. I found that quite useful. Taking it one step further, could I request some recommendations on how we might profile Java code

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Leon Rosenberg
On Tue, Apr 15, 2014 at 7:58 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/15/14, 10:51 AM, Shanti Suresh wrote: Taking it one step further, could I request some recommendations on how we might profile Java code

Re: How to monitor performance of tomcat

2014-04-08 Thread Leon Rosenberg
How about http://www.moskito.org ? It has everything you need including full control of jmx beans, memory management, threads, your beans/pojos/classes, filters, urls, what not... regards Leon On Tue, Apr 8, 2014 at 1:05 PM, Randhir Singh randhir.si...@sterlite.comwrote: We have an

Re: The Service Component

2014-03-07 Thread Leon Rosenberg
Hello, I do use multiple connectors but one service. Multiple connectors to separate user traffic from admin/management traffic. For example if due to overload no threads are available to server http request on the 'main' connector, I still can look into the app, to see what is going on, over my

Re: The Service Component

2014-03-07 Thread Leon Rosenberg
Hello Leo, On Fri, Mar 7, 2014 at 6:49 PM, Leo Donahue donahu...@gmail.com wrote: On Fri, Mar 7, 2014 at 9:01 AM, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, I do use multiple connectors but one service. Multiple connectors to separate user traffic from admin/management

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Leon Rosenberg
Hello Kumar, can't you just ask your Ops guys to get your the load balancer config? That would be much easier as guessing. Usually you can configure how many samples the load balancer must try to get and what is the timeout. For example if the setting is 3 with timeout of 15 seconds, 3 requests

Re: sudden increase in tomcat sessions..?

2014-02-09 Thread Leon Rosenberg
Hello, I think some things are mixed up here. Since you are behind a load balancer, its unlikely that you experience ping (icmp) DoS, at least that it goes through till your server. First, setup access logs in server.xml !-- Access log processes all example. Documentation at:

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Thu, Feb 6, 2014 at 11:58 PM, David Kerber dcker...@verizon.net wrote: On 2/6/2014 3:13 PM, Michal Botka wrote: When an application stores an object into the session and then the application is reloaded using Tomcat Web Application Manager, the classloader cannot be garbage collected. As

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Fri, Feb 7, 2014 at 12:45 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] Subject: Re: Tomcat classloader memory leak when an object is stored into session When an application stores an object into the session

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Fri, Feb 7, 2014 at 8:38 AM, Michal Botka mr.bo...@gmail.com wrote: Is there a way how to avoid this leak? I would like to develop an application which can be safely deployed/undeployed without restarting the server. OK, now I know that my application cannot store it's objects into

Re: Java to JavaScript RMI framework available.

2013-12-31 Thread Leon Rosenberg
Hello Igor, this looks really promising, I will take a deeper look in next year ;-) Btw, Happy New Year to Everyone ;-) Leon On Tue, Dec 31, 2013 at 1:55 AM, Igor Urisman igor.uris...@gmail.comwrote: Folks, I needed to write this for something I am working on and thought there might be a

Re: [OT] Garbage Collectors

2013-12-18 Thread Leon Rosenberg
Hello, On Thu, Dec 19, 2013 at 12:11 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I was recently discussing garbage collectors with a friend (yes, an exciting conversation) and I was wondering what the folks in the

Re: [OT] Garbage Collectors

2013-12-18 Thread Leon Rosenberg
On Thu, Dec 19, 2013 at 12:51 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: On Wed, Dec 18, 2013 at 6:11 PM, Christopher Schultz ch...@christopherschultz.net wrote: 3. What is your total heap size? -Xms4096m -Xmx4096m -XX:MaxPermSize=384m (will share this as well, just

[OT] Symantic has a first tomcat worm ;-)

2013-11-25 Thread Leon Rosenberg
Morning everyone, what can be greater start in the morning as reading about first tomcat worm found by symantec ;-) http://www.symantec.com/connect/blogs/all-your-tomcat-are-belong-bad-guys Enjoy your caffe. Leon

Re: Tomcat restart utility

2013-11-14 Thread Leon Rosenberg
Hello Vicky, et al, I think the easiest way to give the developers the restart capabilities is to get them ssh access to the user that is running tomcat. This is easy, secure and convenient. regards Leon On Thu, Nov 14, 2013 at 4:50 AM, vicky vicky007aggar...@yahoo.co.in wrote: Thanks Chris,

Re: [OT] [Fwd: TomEE Professional Support]

2013-11-13 Thread Leon Rosenberg
I got it too. I think its easier to delete and forget it, as to debate about it. ;-) regards Leon On Wed, Nov 13, 2013 at 2:15 PM, André Warnier a...@ice-sa.com wrote: Hi. I got the following email in my personal email inbox. Isn't there some rule, or at least some matter of self-control,

Re: Tomcat Monitoring - Thread usage - currentThreadCount or currentThreadBusy

2013-08-15 Thread Leon Rosenberg
Hello Vikram, if you are working on a monitoring solution for tomcat I suggest you take a look at moskito: http://www.moskito.org. regards Leon On Thu, Aug 15, 2013 at 3:42 AM, Vikram Jain rahulvi...@gmail.com wrote: Hi Team, I'm Vikram Jain. My first query to Tomcat user group, looking

Re: javaagent is messing with webapp classpath

2013-08-01 Thread Leon Rosenberg
Hello, yes, your java agent is probably not well coded :-) regards Leon On Thu, Aug 1, 2013 at 8:33 PM, Alberto SOUZA alots@gmail.com wrote: Hi, I have a javaagent that changes some specific classes of my project. But, when i start the server using the agent I get a lot of

Re: Tomcat and IP transparency

2013-07-31 Thread Leon Rosenberg
Hello Joan, I fear I have to disappoint you. If I understand you correctly you want to manipulate the packets on the IP level, setting the source ip address to the ip address of the originator of the packet, similar to what a loadbalancer would do. It is possible technically, but it's a very

Re: Multiple instances of Tomcat 7.0 on one server

2013-07-19 Thread Leon Rosenberg
Hello Mr. Random, as usual there is no easy answer here. I think the most correct answer would be RATHER NOT. There is rather no performance to be gained but running multiple instances of the same app in multiple tomcats on the same physical machine except for: * you need a lot of heap per

Re: JSP in Static Resources

2013-07-14 Thread Leon Rosenberg
Hello Alireza, what exactly was wrong with putting contentType=text/css;charset=UTF-8 on top of your css-jsps? Actually each page should have content-type, so why not the css jsps? Leon On Sun, Jul 14, 2013 at 12:43 PM, Alireza Fattahi afatt...@yahoo.comwrote: Well, If we want to follow

Re: Monitoring Tomcat - In-depth details

2013-07-02 Thread Leon Rosenberg
Hello, check http://www.moskito.org out. MoSKito is an open source project that has been around since 2007. It supports most of the things you mentioned except byte-code instruction yet (an agent is currently in development, but its not that easy to implement ;-)). But you can integrate it along

Re: Exeptions after upgrading to tomcat 7

2013-05-26 Thread Leon Rosenberg
Hello Manuel, On Sat, May 25, 2013 at 10:41 PM, Manuel LeNormand manuel.lenorm...@gmail.com wrote: Hello all, I have a Solr instance running on a Tomcat 6 servlet, everything worked fine. While upgrading to Tomcat 7.0.34, I get exceptions I'm having a hard time to deal with. Two kind of

Re: Exeptions after upgrading to tomcat 7

2013-05-26 Thread Leon Rosenberg
On Sun, May 26, 2013 at 3:14 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] Subject: Re: Exeptions after upgrading to tomcat 7 Remove following lines from server.xml: !-- Prevent memory leaks due to use of particular

Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Leon Rosenberg
Hello Shanti, On Fri, May 3, 2013 at 10:57 PM, Shanti Suresh sha...@umich.edu wrote: I am interested in trending of the metrics - so data for four months, let's say. - Does moskito have a way of storing data? yes it does:

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 a...@ice-sa.com 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

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 user) and

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

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
On Mon, Apr 29, 2013 at 4:54 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 4/29/13 10:36 AM, Leon Rosenberg wrote: On Mon, Apr 29, 2013 at 3:49 PM, Christopher Schultz ch...@christopherschultz.net wrote: Leon

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
Hello Howard et al, On Mon, Apr 29, 2013 at 5:55 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Leon, On Mon, Apr 29, 2013 at 11:02 AM, Leon Rosenberg rosenberg.l...@gmail.comwrote: Back to your question, filter is ok, too many filters are making stack traces fuller than needed

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 would

Re: getting the request that created the session

2013-04-28 Thread Leon Rosenberg
2013/4/28 Martin Gainty mgai...@hotmail.com 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
Answering my own email :-) On Sun, Apr 28, 2013 at 6:07 PM, Leon Rosenberg rosenberg.l...@gmail.comwrote: 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

  1   2   3   4   5   6   7   8   >