Is RMI leak prevention working properly? Shutdown failure

2023-10-18 Thread Leon Atherton
remain alive? Full log below. Thanks, Leon NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi

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
dress instead of the local one. Same config works on 8.5 interestingly enough. Anyway, thanks for the help and sorry for the confusion. kr Leon On Fri, Mar 24, 2023 at 7:54 PM Mark Thomas wrote: > And if you dump out the headers and the value of > ServletRequest.getRemoteAddr() with (an

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
Hi Konstantin, Server version: Apache Tomcat/9.0.64 Server built: Jun 2 2022 19:08:46 UTC Server number: 9.0.64.0 OS Name:Linux OS Version: 5.4.0-1092-gcp Architecture: amd64 JVM Version:1.8.0_332-b09 JVM Vendor: Temurin kr Leon On Fri, Mar 24, 2023 at 1:17 PM

Can't get RemoteIpValve to work

2023-03-24 Thread Leon Rosenberg
\.0\.3" is wrong, bug I can't get my head around it. any help would be highly appreciated kr Leon

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
eAddr properly. Is there a trick to this configuration? kr Leon

Re: Firefox triggers HTTP2 overhead protection - known issue?

2021-05-06 Thread Leon Atherton
On 06/05/2021 17:13, Leon Atherton wrote: On 06/05/2021 16:06, Christopher Schultz wrote: On 5/6/21 09:36, Mark Thomas wrote: On 06/05/2021 13:33, Christopher Schultz wrote: Leon, On 5/6/21 06:25, Leon Atherton wrote: We are seeing that Firefox triggers the HTTP2 overhead protection with

Re: Firefox triggers HTTP2 overhead protection - known issue?

2021-05-06 Thread Leon Atherton
On 06/05/2021 16:06, Christopher Schultz wrote: On 5/6/21 09:36, Mark Thomas wrote: On 06/05/2021 13:33, Christopher Schultz wrote: Leon, On 5/6/21 06:25, Leon Atherton wrote: We are seeing that Firefox triggers the HTTP2 overhead protection with multipart file uploads. About 1MB is uploaded

Firefox triggers HTTP2 overhead protection - known issue?

2021-05-06 Thread Leon Atherton
it's a known Firefox issue I'd like to know if something has been raised on their bug tracker I can follow? Thanks Leon - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

ApacheCon @Home 2020 links for the presentations page

2021-04-13 Thread Leon Atherton
https://tomcat.apache.org/legal.html) needs the copyright year updated from 2020 to 2021 in the first paragraph. Regards, Leon --- ApacheCon @Home 2020 State of the Cat - Mark Thomas, https://www.youtube.com/watch?v=uDy-Dwexy2Q";>video Lost in the Docs - Fel

Re: POST request fails if content is ignored?

2019-09-10 Thread Leon Atherton
Very grateful for your reply, this does indeed solve my issue (and I learned something new too). Thanks, Leon On 10/09/2019 12:03, Mark Thomas wrote: > On 09/09/2019 16:41, Leon Atherton wrote: >> Our use case is rejecting the request based on IP. >> >> In the browser the

Re: POST request fails if content is ignored?

2019-09-09 Thread Leon Atherton
7;m not sure if it's an issue with how Tomcat handles the request, or how the browsers are handling the response (but I suspect it can be fixed on the Tomcat side as the problem does not occur with Payara). Thanks On 09/09/2019 15:48, André Warnier (tomcat) wrote: > On 09.09.2019 15:

Re: POST request fails if content is ignored?

2019-09-09 Thread Leon Atherton
an the original file (say + 30%). I > do not know (and the doc does not say) if the maxPostSize attribute > refers to the POST content still encoded or already decoded. > > > On 09.09.2019 12:53, Leon Atherton wrote: >> Hello, >> >> I've discovered an interestin

POST request fails if content is ignored?

2019-09-09 Thread Leon Atherton
t for the full upload before sending the response. It's a slightly odd workflow, but it's not too unreasonable to sometimes respond early and ignore the request content. Is this expected behavior, or a bug in Tomcat? Thanks! Leon -

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
useful and successful one. If you want something to be to java as java to c, that would be scala (or something new yet to arise). regards Leon On Mon, Mar 25, 2019 at 9:25 AM John Dale wrote: > Greetings; > > Generally speaking, how would folks feel about an AI taking over > programmin

Re: Number of tomcat downloads

2019-02-05 Thread Leon Rosenberg
le ',' not followed by a whitespace and such. if(attachments == null) - if not followed by a whitespace etc. Hence if such a mature product like tomcat (with 10.000.000 installations) contains 85412 errors and is considered well documented, he is using the wrong tool for the task. regards

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
n adoption rate results in more than 10 installations. " But this is from 2014 and I assume there should be a better number by now. Anyone? Asking for a friend ;-) regards Leon

[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
odern jvms anymore (called metaspace now) and in this case this setting doesn't do anything. Still, you should reduce Xmx to 13 or less. Leon On Sat, Dec 22, 2018 at 1:35 PM Dhaval Jaiswal wrote: > I am facing issue of crashing JAVA process and log files attached for the > same. > &g

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
ypes. Are there any other settings to try? regards Leon

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 t

Re: Tomcat Binary Connector

2018-09-22 Thread Leon Rosenberg
multi-language support, http2 features, and the convenience that no-one ever got fired for using google technology. regards Leon On Sat, Sep 22, 2018 at 2:49 AM anthony berglas wrote: > We would like to run a binary protocol in a Tomcat container, so that > binary sent to a specific port al

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

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

2018-08-27 Thread Leon Rosenberg
essed... Thanks for the insights! Leon On Mon, Aug 27, 2018 at 9:07 AM Jäkel, Guido wrote: > Dear Leon, > > I suggest to use the Tomcat Manager Application to investigate the session > data: > > * Use the Session Display (/manager/html/sessions?path=/foo) to take a > lo

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

2018-08-24 Thread Leon Rosenberg
some attributes from time to time? My understanding was that the session timeout is solely dependent on incoming requests and handled by the container, but I was not 100% sure ;-) Thanks in advance Leon

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 c

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 by Tomcat

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

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 weba

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

2018-02-27 Thread Leon Rosenberg
se don't be shy and sign-up. > > I've never known anyone's proposal to be declined, so don't feel as if > there is some kind of bar you have to clear to be considered. I bet, I know someone who'd be the first ;-) regards Leon

Re: GC allocation failure

2018-01-08 Thread Leon Rosenberg
ch of course is also performance related, but differently). But I am not an expert either, so I might be wrong here. As for OP's original statement: "When the GC starts up, it runs frequently and efficiently because the heap is small", I don't think it is correct anymore, especially not for G1, as long as the object size is reasonable (not Humongous). Leon

Re: GC allocation failure

2018-01-08 Thread Leon Rosenberg
case I suppose it is ok, to provide different values at least for some time, and adjust later. However, reading gc logs or using tools like jclarity can help you find the proper pool size for your collector/jvm version/application better. Unless you release and change your memory usage pattern every week or so, in this case using xms!=xmx seems ok to me, as a safety net. regards Leon

[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
C -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:logs/gc.log " alternatively moskito would also show you avg response times and gcs ;-) regards Leon On Fri, Aug 18, 2017 at 11:13 PM, James H. H. Lampert < jam...@touchtonecorp.com> wrote: > On 8/18/17, 1:41 PM, Christopher Schultz wrote: &

Re: Tomcat memory

2017-08-17 Thread Leon Rosenberg
regards Leon On Thu, Aug 17, 2017 at 12:09 PM, André Warnier (tomcat) wrote: > On 17.08.2017 11:21, Fady Haikal wrote: > >> Team, >> Please i need some help her >> > > Maybe start here ? http://lmgtfy.com/?q=analyse+tomcat+heap+dump > > (an

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

2017-08-16 Thread Leon Rosenberg
providers will have support for this or that automation technique. Or go straight for docker. Just two weeks ago I had a pleasure of watching someone loosing his production site, cause auto-upgrade just screwed their crate.io installation. regards Leon P.S. I haven't used debian for 4-5 y

Re: Where Tomcat webapp contexts live on Debian

2017-08-16 Thread Leon Rosenberg
every question about tomcat behaviour on a specific distribution by suggesting to throw the crap away and download the vanilla tomcat form the one and only legal source ;-) (at least in the past, to which debian belongs). regards Leon On Wed, Aug 16, 2017 at 7:43 AM, Peter Kreuser wrote: > I'

Re: Automatically compressing localhost_access_log after rotation

2017-08-03 Thread Leon Rosenberg
ile operations asynchronously to log events so maybe using slf4j over logback would be a more reliable way. regards Leon

Re: Tomcat on macOS

2017-05-20 Thread Leon Rosenberg
However, all of that is pretty improbable with a mac mini. Rule of thumb: if you can bring your app with tomcat to near 100% CPU or memory usage, no need for multiple instances. HTH Leon P.S. kudos to you for hosting on macs ;-) Crazy but fun ;-)

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
s etc. Finally MoSKito allows you to integrate business data into monitoring, things like registration count, checkout, gender of user, and so on... 'standard profiler' - is something designed to be used in the development environment. moskito is an apm tool. hope that helps regards Leon

Re: Strange wait time in my application - Tomcat 7.0.67

2016-10-03 Thread Leon Rosenberg
ode you have, that lasts longer from time to time, the tracer will find it. regards Leon On Mon, Oct 3, 2016 at 2:12 PM, Mark Thomas wrote: > On 03/10/2016 11:19, Tullio Bettinazzi wrote: > > I already use Yourkit but it doesn't seems a load problem. > > > > The

Tomcat won't start

2016-08-19 Thread Leon Vergottini
option require that $CATALINA_PID is defined The Tomcat instances is ver 8.0.32 and Java 1.8.0_77 installed. No logs files are created to troubleshoot. May I kindly ask for direction. Kind Regards Leon

Re: question on Java / Tomcat / GC

2016-07-14 Thread Leon Rosenberg
t disable the gc (recommended anyway): -XX:+DisableExplicitGC Since the app is running in tomcat6 it must be old, and a lot has been happening with the gc since tomcat6 time. Btw, you may want to add -XX:+PrintGCDetails for more insights into spaces. Also shouldn't -XX:+UseParallelGC be default since 1.7? regards leon

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

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
for ifelse. Which one would you choose? Equally important, which one do you think is more readable? I would say if else is hard to read, but this can be just personal impression. regards Leon

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+

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

2016-03-28 Thread Leon Rosenberg
imagine people should work. And since tomcat is doing stuff it's own way, it will be a huge portion of work to make it work with a pom. So if you want to work with a pom and maven, you maybe start your work exactly there ;-) regards Leon P.S. The opinion that "ant is gone" is of course

Re: Monitoring Connections

2015-10-08 Thread Leon Rosenberg
th%20JMX.pdf > ) who posts many answers to this mailing list. > > > or if you want to go deeper, try MoSKito (http://www.moskito.org) regards Leon > >

Re: [Hardening] Running tomcat under a specific account

2015-02-25 Thread Leon Rosenberg
bugs to the bugs that could exists in tomcats code. regards Leon On Wed, Feb 25, 2015 at 11:13 PM, Jan Tosovsky wrote: > Dear All, > > there are plenty resources mentioning it is a must to run tomcat as a > dedicated user with limited permissions. > > Is it still true when

Re: Need Help!

2015-01-28 Thread Leon Rosenberg
older is it's current directory. Not quite right, the directory you started from is your current directory. Which can be TOMCAT_HOME or TOMCAT_HOME/bin etc. Leon > > > >> If I use my java code without the servlet it is checking for the file in >> current folder (which is

Re: SAML 2.0 with container managed authentication in Tomcat

2014-09-13 Thread Leon Rosenberg
/display/PLINK/SAML+Authenticators+(Tomcat,JBossAS) I have used picketlink with tomcat as SP and jboss wildfly as IDP and it worked very well. Picketlink works great but the support is rather thin. You may also want to check WSO2. regards Leon P.S. Both provide Filters not Valves.

Re: Question on Thread Local

2014-09-02 Thread Leon Rosenberg
everywhere) without passing them around and having them in each and every method. Another popular example would be to store the Locale the user is in for i18n. HTH Leon P.S. of course you need to clean up the thread locals at the end of processing (at least in theory) and so on. On Tue, Sep 2, 2014

Re: Question on Thread Local

2014-09-02 Thread Leon Rosenberg
ormation through layers of code without adding it explicitly as parameter to every function on the way. regards Leon P.S. of course there are some technical aspects like ability to be passed to the spawned threads etc, which I didn't mention :-) On Tue, Sep 2, 2014 at 9:47 PM, Leo Donahue

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 smal

Re: VERY HIGH TRAFFIC TUNING

2014-07-09 Thread Leon Rosenberg
average user session is 7 minutes. > If playing with CONNECTION_TIMEOUT, than better on OS level. But again that depends on what is really happening within your application and with the connections. You could monitor it with netstat and see if you have too many CLOSE_WAITs or something. That it's easier to decide what to do. > > Thanks for the help! > Hernán. > Leon. P.S. needless to say, but having a monitoring tool like http://www.moskito.org will help either ;-)

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
s finished). Maybe you have a wrapper script that starts another script, that starts tomcat, and this is why your pid differ? regards Leon On Fri, May 23, 2014 at 12:03 PM, Арсений Зинченко wrote: > Hi, guys. > > I set: > > $ export CATALINA_PID="$CATALINA_HOME/conf/cat

Re: Application monitoring

2014-05-19 Thread Leon Rosenberg
Hello David, yes there is. And I sent you two links to blog entries about exactly that. Did you read them? regards Leon P.S. in the examples the app specific info is monitored directly and not via jmx, because that saves a lot of overhead, but reading jmx beans is also supported. On Mon

Re: Application monitoring

2014-05-19 Thread Leon Rosenberg
here: http://blog.anotheria.net/msk/case-study-monitoring-a-cluster-of-java-daemon-processes/ regards Leon On Mon, May 19, 2014 at 2:42 PM, David kerber wrote: > On 5/19/2014 8:27 AM, Neven Cvetkovic wrote: > >> On Mon, May 19, 2014 at 8:11 AM, David kerber >> wrote: >

Re: Tomcat dependency on application server

2014-05-17 Thread Leon Rosenberg
. Probably ps is a good way to start to find out what is really running on your machine and where. Leon On Sat, May 17, 2014 at 11:35 AM, Randhir Singh wrote: > I have 1 observation. In our developmental environment, I killed the Tomcat > process and started the Tomcat it worked. But

Re: Slow page response time in tomcat 8.0.5

2014-05-16 Thread Leon Rosenberg
information on the integration: blog.anotheria.net/msk/the-complete-moskito-integration-guide-step-1/ MoSKito itself: http://www.moskito.org regards Leon On Thu, May 15, 2014 at 7:04 PM, Hariprasad Manchi wrote: > Hi, > We are trying to use apache-tomcat 8.0.5 for our web application an

Re: Application monitoring

2014-05-16 Thread Leon Rosenberg
could use DistributeMe ( http://www.distributeme.org) or spring-remote, and so on. But yet again, why reinventing the wheel? regards Leon On Wed, May 14, 2014 at 6:28 PM, David kerber wrote: > I am working on a small Tomcat servlet to monitor other tomcat-based > applications running on t

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

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

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Leon Rosenberg
ed to use a profile on a production site it killed it within a second. Usually the performance overhead of a profiler is so huge, that you have no chance to run it in production. And real problems do not occur in test labs ;-) Leon

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Leon Rosenberg
ations etc. > There are tools that are doing exactly that for about 7 years out now. You can go to http://newrelic.com and get it for as much as 150 USD per server. Or you can get all the same for free from http://www.moskito.org. And more. regards Leon > > Greatly appreciate your thoughts and opinions. > > Thanks, > > -Shanti >

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

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
n, over my "administrative" connector. Leon On Fri, Mar 7, 2014 at 5:44 PM, Leo Donahue wrote: > Who uses more than one Service in their server.xml and why? I get > that you can have multiple Connectors if you have multiple Service > components but why use multiple connecto

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Leon Rosenberg
uests would be send, and after a total of 45 seconds the server would be marked as down and receive no more traffic. But(!) this is subject of the specific configuration of your load balancer. So why not just get it and check? regards Leon On Tue, Feb 11, 2014 at 5:56 PM, Kumar Muthuramalingam

Re: sudden increase in tomcat sessions..?

2014-02-09 Thread Leon Rosenberg
//blog.anotheria.net/msk/the-complete-moskito-integration-guide-step-6-moskito-control/ good luck. regards Leon. On Sun, Feb 9, 2014 at 6:22 AM, Kumar Muthuramalingam wrote: > Thanks for your reply. What happened actually was there was a sudden > increase in invalid sessio

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

2014-02-06 Thread Leon Rosenberg
t; session, but that is very strong requirement which the most of the > applications don't meet. > Thanks for help. > But do you have to serialize your sessions? Switching off session serialization might help. regards Leon > > 2014-02-06 22:58 GMT+01:00 David Kerber : >

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
nce I don't use the reloading anyway I will relax and wait for enlightenment that is sure to come from Chuck ;-) regards Leon

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 wi

Re: [OT] Garbage Collectors

2013-12-18 Thread Leon Rosenberg
6m > -XX:MaxPermSize=384m (will share this as well, just because) > > > but I think I can change to -Xms/-Xmx1250m, because heap used seem to max > out at (+/-)1024m. > > Don't, GC works best if used heap is < half of allowed heap. So keep at least 2G (You know that you can specify 4G instead of 4096M, right? :-)) Leon

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

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

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 for

  1   2   3   4   5   6   7   8   9   10   >