Re: TLD scanning performance question

2017-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Markus, On 10/25/17 10:53 AM, i...@flyingfischer.ch wrote: > >> >> Yes, it's the SecureRandom initialization that is killing you. >> Being a virtual server, it likely has no direct source of true >> randomness so it needs to pull from whatever the

Re: TLD scanning performance question

2017-10-25 Thread Ray Holme
And haveged works GREAT! Thanks Markus. On Wednesday, October 25, 2017 10:53 AM, "i...@flyingfischer.ch" wrote: > > Yes, it's the SecureRandom initialization that is killing you. Being a > virtual server, it likely has no direct source of true randomness so > it needs to pull from wha

Re: TLD scanning performance question

2017-10-25 Thread i...@flyingfischer.ch
> > Yes, it's the SecureRandom initialization that is killing you. Being a > virtual server, it likely has no direct source of true randomness so > it needs to pull from whatever the hypervisor is willing to provide. > > You'll need to ask your virtualization vendor for how to get access to > more

Re: TLD scanning performance question

2017-10-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ray, On 10/25/17 9:08 AM, Ray Holme wrote: > I asked this question before (differently) and got some answers but > now I think I understand what is really happening. I just want to > confirm that I have finally understood what is happening. Given tw

TLD scanning performance question

2017-10-25 Thread Ray Holme
I asked this question before (differently) and got some answers but now I think I understand what is really happening. I just want to confirm that I have finally understood what is happening. Given two Linux boxes running the same application, one is much slower starting  (think that  "slower" mac

Re: Performance question...

2015-04-15 Thread PerfGuru
Here is the bug reference I found:https://jira.spring.io/i#browse/SPR-11335 Regards,-Tony From: "Balana, Vishal" To: Tomcat Users List ; PerfGuru ; Jeffrey Janner Sent: Tuesday, April 14, 2015 8:19 AM Subject: RE: Performance question... Could you please share the refe

RE: Performance question...

2015-04-14 Thread Balana, Vishal
27; Subject: Re: Performance question... Sorry Jeff my Tocat emails are bouncing from the email address use so using another one that works. Last Friday the development team tried the spring framework fix  sugested and it fixed the problem of higher than normal cpu and performance. We did try th

Re: Performance question...

2015-04-13 Thread PerfGuru
cache but as expected it did not make a difference. Again thanks for all the suggestions.-Tony From: Jeffrey Janner To: 'Tomcat Users List' ; 'PerfGuru' Sent: Friday, April 10, 2015 1:03 PM Subject: RE: Performance question... > -Original Messag

Re: Performance question...

2015-04-09 Thread PerfGuru
Sent: Tuesday, April 7, 2015 5:55 PM Subject: Re: Performance question... Hello Try to do a java thread dump and check the stuck threads (possibly by comparing with the output of the tomcat server status page). Hopefully this will give you a clue about what the threads are doing at that time. If

Re: Performance question...

2015-04-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tony, On 4/7/15 12:54 PM, PerfGuru wrote: > Hi All,We are noticing when running a simple load test of 25 > virtual users that our Tomcat server is running at 40% CPU and > transactions are taking over 40 seconds. We setup a test where we > focused (

Re: Performance question...

2015-04-07 Thread Linus Brimstedt
Hello Try to do a java thread dump and check the stuck threads (possibly by comparing with the output of the tomcat server status page). Hopefully this will give you a clue about what the threads are doing at that time. If the application uses a database, you may see that they are stuck waiting for

Performance question...

2015-04-07 Thread PerfGuru
Hi All,We are noticing when running a simple load test of 25 virtual users that our Tomcat server is running at 40% CPU and transactions are taking over 40 seconds. We setup a test where we focused (in a loop) one of the longer response time requests. The access logs show the log response time a

Re: Tomcat Linux/Windows Performance Question

2012-10-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 10/29/12 2:45 PM, Pid wrote: > >> Thank you, This is very completed answer and I found it really >> useful, and hopeful! Application is under heavy developing, app >> has some page ( I call it page, I don't know java or serverlet) >> with ver

Re: [OT] Re: Tomcat Linux/Windows Performance Question

2012-10-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 10/29/12 3:16 PM, verlag.preis...@t-online.de wrote: > Hi Christopher, > > -Original-Nachricht- >> Von: Christopher Schultz Datum: >> Mon, 29 Oct 2012 03:52:36 +0100 >> >> Personally, I prefer Linux based upon its friendlines

Re: [OT] Re: Tomcat Linux/Windows Performance Question

2012-10-29 Thread Matthew Gillen
On 10/29/2012 03:16 PM, verlag.preis...@t-online.de wrote: >> 3. Bizarre observations when using high-resolution (or even ms-res) >> clocks and timers... seems like you can't get more than about 0.1-sec >> resolution or so reliably -- or at least plausibly -- on a win32 box. > > Hmm, I think this

[OT] Re: Tomcat Linux/Windows Performance Question

2012-10-29 Thread verlag.preis...@t-online.de
Hi Christopher, -Original-Nachricht- > Von: Christopher Schultz > Datum: Mon, 29 Oct 2012 03:52:36 +0100 > > Personally, I prefer Linux based upon its friendliness to developers > and administrators: it's got the tools we need and it's easy to build > additional tools if necessary. Wel

Re: Tomcat Linux/Windows Performance Question

2012-10-29 Thread Pid
> Thank you, This is very completed answer and I found it really useful, and > hopeful! > Application is under heavy developing, app has some page ( I call it page, > I don't know java or serverlet) with very high latency occurs for now, some > times we got out of memory error message. > This is t

Re: Tomcat Linux/Windows Performance Question

2012-10-29 Thread André Warnier
Ashkan Rahmani wrote: ... Application is under heavy developing, app has some page ( I call it page, I don't know java or serverlet) with very high latency occurs for now, some times we got out of memory error message. This is test server with windows 2003 x86 and tomcat 6.x. Chief developer bel

Re: Tomcat Linux/Windows Performance Question

2012-10-28 Thread Ashkan Rahmani
On Mon, Oct 29, 2012 at 6:22 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Pid, > > On 10/28/12 10:40 AM, Pid * wrote: > > On 28 Oct 2012, at 11:39, Ashkan Rahmani > > wrote: > > > >> Hi, Now I have a windows 2003 server and a

Re: Tomcat Linux/Windows Performance Question

2012-10-28 Thread Ashkan Rahmani
On Sun, Oct 28, 2012 at 7:10 PM, André Warnier wrote: > André Warnier wrote: > >> Ashkan Rahmani wrote: >> >>> Hi, >>> Now I have a windows 2003 server and a Tomcat 6.x on it. >>> Our application has many many parts and it's very big. >>> >>> Actually we are not happy with tomcat performance, (We

Re: Tomcat Linux/Windows Performance Question

2012-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 10/28/12 10:40 AM, Pid * wrote: > On 28 Oct 2012, at 11:39, Ashkan Rahmani > wrote: > >> Hi, Now I have a windows 2003 server and a Tomcat 6.x on it. Our >> application has many many parts and it's very big. >> >> Actually we are not happy

Re: Tomcat Linux/Windows Performance Question

2012-10-28 Thread André Warnier
André Warnier wrote: Ashkan Rahmani wrote: Hi, Now I have a windows 2003 server and a Tomcat 6.x on it. Our application has many many parts and it's very big. Actually we are not happy with tomcat performance, (We are working very hard on developing that software and improving performance) . W

Re: Tomcat Linux/Windows Performance Question

2012-10-28 Thread Pid *
On 28 Oct 2012, at 11:39, Ashkan Rahmani wrote: > Hi, > Now I have a windows 2003 server and a Tomcat 6.x on it. > Our application has many many parts and it's very big. > > Actually we are not happy with tomcat performance, (We are working very > hard on developing that software and improving >

Re: Tomcat Linux/Windows Performance Question

2012-10-28 Thread André Warnier
Ashkan Rahmani wrote: Hi, Now I have a windows 2003 server and a Tomcat 6.x on it. Our application has many many parts and it's very big. Actually we are not happy with tomcat performance, (We are working very hard on developing that software and improving performance) . We want to improve app

Tomcat Linux/Windows Performance Question

2012-10-28 Thread Ashkan Rahmani
Hi, Now I have a windows 2003 server and a Tomcat 6.x on it. Our application has many many parts and it's very big. Actually we are not happy with tomcat performance, (We are working very hard on developing that software and improving performance) . We want to improve application performance (wo

Re: Tomcat Performance Question

2008-01-26 Thread mgainty
ubject: Re: Tomcat Performance Question > Ali Ok wrote: > > Thanks David, > > > > I mean, if I make 3 requests in a very short time (about 10 seconds); > > Tomcat does not respond. > > I read books, tutorials, faqs and threads at maling list about Tomcat > >

Re: Tomcat Performance Question

2008-01-26 Thread David Kerber
Ali Ok wrote: Thanks David, I mean, if I make 3 requests in a very short time (about 10 seconds); Tomcat does not respond. I read books, tutorials, faqs and threads at maling list about Tomcat tuning. But I couldnt find an example server.xml file used in production or real test results. So

Re: Tomcat Performance Question

2008-01-26 Thread Peter Lin
have you tried monitoring the CPU and IO usage of the system during the test? In the past, when I stress test an application, I monitor the cpu and io, to determine which part is getting maxed out first. For example, if I was serving up static pages, the first thing to mak out is the IO, so even t

RE: Tomcat Performance Question

2008-01-26 Thread Caldarale, Charles R
> From: Ali Ok [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat Performance Question > > What if someone make so much requests and confuse the server? > Does Tomcat have an prevention for this situation? You can configure the maximum number of requests a will handle concurrently,

Re: Tomcat Performance Question

2008-01-26 Thread Ali Ok
Peter, thats ok, maybe some day we can get that much hit :) What if someone make so much requests and confuse the server? Does Tomcat have an prevention for this situation? Or is it beyond the scope? David, I have already read all of resources you sent. Invariably performance issues are rarely a

Re: Tomcat Performance Question

2008-01-26 Thread David Brown
Hello Ali, there are no absolute benchmarks for what you are looking for. The central theme to any performance questions invariably lead to the word (Architecture). You need to evaluate you overall architecture from a high level perspective. With this said the questions then are: * What is your

Re: Tomcat Performance Question

2008-01-26 Thread Peter Lin
30,000 requests in 10 seconds probably isn't normal traffic, but it could represent a sudden spike. think of it another way, that's 3,000 requests per second. If we calculate that for a 10 hour period, it puts things in perspective 1000 req/sec * 60 sec/min = 60,000 req/min 60,000 req/min * 60 mi

Re: Tomcat Performance Question

2008-01-26 Thread Ali Ok
Thanks David, I mean, if I make 3 requests in a very short time (about 10 seconds); Tomcat does not respond. I read books, tutorials, faqs and threads at maling list about Tomcat tuning. But I couldnt find an example server.xml file used in production or real test results. So I cant understan

Re: Tomcat Performance Question

2008-01-26 Thread David Brown
Hello Ali, please find included below a link URL that addresses the JSF performance issue. A much more rigorous test would be to use the JMeter distributed testing using the JMeter server. HTH, David. Ali Ok wrote .. > Hi, > > We are building a web application with JSF. Last day I tested it wit

Tomcat Performance Question

2008-01-26 Thread Ali Ok
Hi, We are building a web application with JSF. Last day I tested it with JMeter. Results are bad (I guess). Then I tried to send 3 requests with JMeter to "Shuffle Example" in Tomcat's examples directory with a limited size of (256 MB I think) memory resource given to Tomcat. This "Shuffle E

Re: performance question

2006-10-09 Thread Leon Rosenberg
atabase (Oracle) I'm using? > can you tell me more about performance monitoring log files? Regards, Frank -- View this message in context: http://www.nabble.com/performance-question-tf2090969.html#a6713234 Sent from the Tomcat - User mailing list archive at Nabble.com. ---

Re: performance question

2006-10-09 Thread Frank Niedermann
t's servlets, or Tomcat, as opposed to possibly the >> database (Oracle) I'm using? > can you tell me more about performance monitoring log files? Regards, Frank -- View this message in context: http://www.nabble.com/performance-question-tf2090969.html#a6713234 Sent fro

Re: performance question

2006-08-16 Thread Paul Singleton
Lambda Probe is a free+easy way to get some instrumentation Propes, Barry L wrote: I'm having some problems this morning with performance. How can I easily determine if it's servlets, or Tomcat, as opposed to possibly the database (Oracle) I'm using? I've not had this problem before. Barry

Re: performance question

2006-08-12 Thread Leon Rosenberg
hmm check your probably not existing performance monitoring log files? :-) Leon On 8/11/06, Propes, Barry L <[EMAIL PROTECTED]> wrote: I'm having some problems this morning with performance. How can I easily determine if it's servlets, or Tomcat, as opposed to possibly the database (Oracle) I

performance question

2006-08-11 Thread Propes, Barry L
I'm having some problems this morning with performance. How can I easily determine if it's servlets, or Tomcat, as opposed to possibly the database (Oracle) I'm using? I've not had this problem before. Barry

Re: Code performance question #2

2006-08-08 Thread David Kerber
Peter Crowther wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Do you think it be more efficient to scan the string once and grab the field values as I get to each field marker? Yes. Yes, the machine is cpu-bound. My 768k data line will spike the cpu to 100% and hold it above

Re: Code performance question #2

2006-08-08 Thread David Kerber
Pid wrote: David Kerber wrote: Pid wrote: here's another obvious question: if you're in a servlet, and you're getting an & separated string from somewhere, where is the "somewhere" that you're getting it from? does the servlet activate and collection the data somehow, or does the da

RE: Code performance question #2

2006-08-08 Thread Peter Crowther
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Please read > http://www.javaranch.com/newsletter/200401/IntroToCodeCoverage.html > paying particular attention to race conditions, deadly > embraces and basic coverage of Functions Martin, I'm confused - could you just outline how code coverage

Re: Code performance question #2

2006-08-08 Thread Martin Gainty
sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Peter Crowther" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, August 08, 2006 5:02 AM Subject: RE: Code perfor

RE: Code performance question #2

2006-08-08 Thread Peter Crowther
> From: David Kerber [mailto:[EMAIL PROTECTED] > Do you think > it be more efficient to scan the string once and grab the > field values as I get to each field marker? Yes. > Yes, the machine is cpu-bound. > My 768k data line will spike the cpu to 100% and hold it > above 95% until > the t

Re: Code performance question #2

2006-08-08 Thread Pid
David Kerber wrote: > Pid wrote: > >> here's another obvious question: >> >> if you're in a servlet, and you're getting an & separated string from >> somewhere, where is the "somewhere" that you're getting it from? >> >> does the servlet activate and collection the data somehow, or does the >> da

Re: Code performance question #2

2006-08-07 Thread Mark Thomas
David Kerber wrote: > I haven't run a profiler on this code; I've tried, but getting the > configuration figured out has stumped me every time. I have had good results with YourKit. Simple to set up and a nice output that shows where the time is spent. I have used to to investigate reported perfor

Re: Code performance question #2

2006-08-07 Thread David Kerber
Pid wrote: here's another obvious question: if you're in a servlet, and you're getting an & separated string from somewhere, where is the "somewhere" that you're getting it from? does the servlet activate and collection the data somehow, or does the data get sent to the servlet (in, for exampl

Re: Code performance question #2

2006-08-07 Thread David Kerber
Peter Crowther wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Is there a more efficient "split" method I could use? Or am I completely missing the point of what you are suggesting? I think you've slightly missed the point. I assume you're calling your function 5 times, each with a

Re: Code performance question #2

2006-08-07 Thread Pid
here's another obvious question: if you're in a servlet, and you're getting an & separated string from somewhere, where is the "somewhere" that you're getting it from? does the servlet activate and collection the data somehow, or does the data get sent to the servlet (in, for example the query st

RE: Code performance question #2

2006-08-07 Thread Peter Crowther
> From: David Kerber [mailto:[EMAIL PROTECTED] > Is there a more efficient "split" method I could use? Or am I > completely missing the point of what you are suggesting? I think you've slightly missed the point. I assume you're calling your function 5 times, each with a different field name t

Re: Code performance question #2

2006-08-07 Thread David Kerber
See my response to Peter; I can't control the format of that data string (it's from a different application). I just need to split out the data fields and store them away in a disk file. Or am I missing the point of your suggestion? Dave Leon Rosenberg wrote: thats ugly, why don't you to

Re: Code performance question #2

2006-08-07 Thread David Kerber
I'm not sure how to "Split it on the &, put it into a suitably keyed structure such as a Map" other than the way I'm doing it already, unless I'm not understanding your suggestion. So I think I need to give a bit more info about how this is used: I can't control the data coming in; it's from

Re: Code performance question #1

2006-08-07 Thread David Kerber
Thanks for the help! Leon Rosenberg wrote: data.length is evaluated each time. here's the example to demonstrate it: public class TestLoop { public static void main(String a[]){ byte data[] = new byte[10]; int counter = 0; for (int i=0; i System.out

RE: Code performance question #2

2006-08-07 Thread Peter Crowther
> From: David Kerber [mailto:[EMAIL PROTECTED] > It is > executed for over 2 million data lines per day, so this routine is > executed over 10 million times per day. [snippet of code that parses the line each time elided] Opinion: You're optimising the wrong piece of code. You're calling this

Re: Code performance question #2

2006-08-07 Thread Leon Rosenberg
thats ugly, why don't you tokenize it into string pairs, store the pairs and works with them? leon On 8/7/06, David Kerber <[EMAIL PROTECTED]> wrote: This code is part of a servlet running in TC 5.5.12, jre ver 1.5.0.6. I use this code to break out individual data fields from a line which is st

RE: Code performance question #1

2006-08-07 Thread Peter Crowther
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > data.length is evaluated each time. > > here's the example to demonstrate it: [Example elided that reassigns data inside the loop] That example would indeed be evaluated each time. However, *if* the compiler's sufficiently smart, it could detec

Code performance question #2

2006-08-07 Thread David Kerber
This code is part of a servlet running in TC 5.5.12, jre ver 1.5.0.6. I use this code to break out individual data fields from a line which is structured as "a=1&b=2&c=3&d=4&e=5". It is executed for over 2 million data lines per day, so this routine is executed over 10 mi

Re: Code performance question #1

2006-08-07 Thread Leon Rosenberg
data.length is evaluated each time. here's the example to demonstrate it: public class TestLoop { public static void main(String a[]){ byte data[] = new byte[10]; int counter = 0; for (int i=0; i wrote: I have a couple of questions about t

Re: Code performance question #1

2006-08-07 Thread David Kerber
By the way, this code is in a servlet running under 5.5.12, if it matters. David Kerber wrote: I have a couple of questions about the performance of my code, but I'm going to ask them in separate threads. The first one is, if I have this loop: for ( ii = 0; ii < data.length; ii++ ) {

Code performance question #1

2006-08-07 Thread David Kerber
I have a couple of questions about the performance of my code, but I'm going to ask them in separate threads. The first one is, if I have this loop: for ( ii = 0; ii < data.length; ii++ ) { where data is defined as byte[] , is the .length property evaluated each time through the loop,