Re: Can't get RemoteIpValve to work

2023-03-29 Thread Leon Rosenberg
Thanks, yes I think my problem never was with the RemoteIpValve, and the other project I copied configuration from actually didn't work despite me thinking it did ;) kr Leon On Wed, Mar 29, 2023 at 6:45 AM Mark Thomas wrote: > On 28/03/2023 21:08, Leon Rosenberg wrote: > > S

Re: Can't get RemoteIpValve to work

2023-03-28 Thread Leon Rosenberg
d without for completeness) the > RemoteIpValve ? > > Mark > > > On 24/03/2023 14:09, Leon Rosenberg wrote: > > Full log output (dumping out headers, without the valve): > > > > 6049752 2023-03-24 14:07:59,749 [http-apr-8080-exec-13] INFO > > n.a.c.extapi.ping

Re: Can't get RemoteIpValve to work

2023-03-24 Thread Leon Rosenberg
, Mar 24, 2023 at 3:07 PM Leon Rosenberg wrote: > yeah, interestingly enough removing ipvalve and adding access log magic, > puts the X-Forwarded-For in the localhost_access.log ... but strange > nevertheless. > > On Fri, Mar 24, 2023 at 11:44 AM Mark Thomas wrote: > >>

Re: Can't get RemoteIpValve to work

2023-03-24 Thread Leon Rosenberg
an see exactly what headers Tomcat is seeing. Alternatively, since this > is over http, Wireshark or similar could help. > > Mark > > > On 24/03/2023 10:29, Leon Rosenberg wrote: > > Hi, > > > > we have following setup > > apache 2.4 on a ubuntu host, in front

Re: Can't get RemoteIpValve to work

2023-03-24 Thread Leon Rosenberg
Konstantin Kolinko wrote: > пт, 24 мар. 2023 г. в 13:30, Leon Rosenberg : > > > > Hi, > > > > we have following setup > > apache 2.4 on a ubuntu host, in front of docker-container with tomcat9 > (on > > same host). > > Connection is via apache mod_http/prox

Can't get RemoteIpValve to work

2023-03-24 Thread Leon Rosenberg
Hi, we have following setup apache 2.4 on a ubuntu host, in front of docker-container with tomcat9 (on same host). Connection is via apache mod_http/proxy. Internal IP of the host is 10.138.0.3 (where httpd and docker are running). In localhost_access log we see always 10.138.0.3 address. If goin

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

2021-06-14 Thread Leon Rosenberg
e.catalina.valves.RemoteIpValve.invoke Skip RemoteIpValve for request /static-ext/firebase/firebase-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

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

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 request.getRe

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, 2

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 (kil

Re: Number of tomcat downloads

2019-02-05 Thread Leon Rosenberg
Leon On Tue, Feb 5, 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

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 couldn&#

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 ra

[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 jvm

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 sta

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 questio

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 requ

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
ession cleanup (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

[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 > ma

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 wrote:

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 by Tomcat for a Status

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: > All, > > I am deli

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 updat

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. > > I'v

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 avoid that, till now

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 u

[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
Thanks Mark! Leon > On 24. Aug 2017, at 15:36, Mark Thomas wrote: > > Final reminder - this will be starting in just over 20 minutes. > > Do join us if you can. > > Mark > > >> On 03/08/17 15:18, Mark Thomas wrote: >> All, >> >> The Tomc

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 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 standard JVM with a > debian > >

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 -XX:+PrintGCDetails

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 -histo:

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

2017-08-16 Thread Leon Rosenberg
atforms) install things 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 i

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 questi

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 r

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 to scale, fails t

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 wrote: >> Sorry I had to

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-tog

[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
On Mon, Oct 3, 2016 at 4:21 PM, Tullio Bettinazzi wrote: > Please help me to understand diffrences beween Moskito and standard > profilers. > > Tks > > Tullio > > > ____ > Da: Leon Rosenberg > Inviato: lunedì 3 ottobre 2016 14.29 &g

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, exp

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 the "Full GC > (System.gc())" are the

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 warning: INFO: > os::commit_memory(0

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 / more

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 i

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 app with Tomcat+Grails+Vaadin+P

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 b

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 ( > > http://events.linuxfoundation.org/sites/events/files/slides/Monitoring%20Apache%20Tomcat%20with%20JMX.pdf > ) who posts ma

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 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 wr

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 wo

Re: Question on Thread Local

2014-09-02 Thread Leon Rosenberg
at 10:22 PM, Leo Donahue wrote: > On Tue, Sep 2, 2014 at 3:00 PM, Leon Rosenberg > 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 Thread.Map&g

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.Map>, in which you can access variables that are 'attached' logically to the current Thread. In practice its a nice way to pass information through l

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 kee

Re: VERY HIGH TRAFFIC TUNING

2014-07-09 Thread Leon Rosenberg
On Wed, Jul 9, 2014 at 4:47 AM, Hernán Marsili 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 with about 7000

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, Арсений Зинченко wrote: > Hi, Leon. > > Thanks for replay. > > Don't know why - but now it works good :-) >

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 -Djava.util.logging.config.f

Re: Application monitoring

2014-05-19 Thread Leon Rosenberg
, May 19, 2014 at 3:01 PM, David kerber 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 fin

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 here:

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. Pr

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 inform

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 us

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 wrote: > Markmail seems to confirm this but kind of remarkable,

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: 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 wro

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 profil

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Leon Rosenberg
On Tue, Apr 15, 2014 at 4:51 PM, Shanti Suresh 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 running in

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 wrote: > We have an application which has JBoss as the a

Re: The Service Component

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

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: 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 w

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 Note: usually, if the load balancer is configured properly, tomcat will

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 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 > session, but that is

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 appl

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 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 a result, the

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 wrote: > Folks, > > I needed to write this for something I am working on and thought there > might be a wider audience for

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

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

[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 wrote: > Thanks Chris, I'm looking for restart cap

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 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, in not > us

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 wrote: > Hi Team, > > I'm Vikram Jain. My first query to Tomcat user group, looking forward to > hear fr

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 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 > ClassNotFoundException fo

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 diffe

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 session

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 wrote: > Well, > > If we want to follow up that post ,

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 s

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

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 k

Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Leon Rosenberg
Hello Shanti, On Fri, May 3, 2013 at 10:57 PM, Shanti Suresh 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: https://confluence.opensource.anotheria.net/display/MSK/MoSKito+Central https://

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 > wrote: > > Back to your question, filter is ok, too many filters are making stack > > trac

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 <

  1   2   3   4   5   6   7   8   9   >