the bottleneck. You can also spend a lot of time
testing a new app, only to find out that the real usage patterns aren't like
that at all and you suddenly need to optimise one operation that you never
thought would be used heavily!
ding where the bottlenecks are.
If I wanted to *really* split hairs, I'd point out that one request might
launch background threads and even this isn't necessarily true. But I'm
splitting hairs now.
- Peter
-
JMeter's output isn't useful for finding bottlenecks. The output of tools on
your servers *is* useful. On Windows, Performance Monitor is your friend. On
UNIX, vmstat and iostat are good first lines of attack; your flavour of UNIX
probably ha
ree of concurrency, or Tomcat will
become a bottleneck.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
ons -
updating one webapp with a new library is a problem.
If you want to look at this approach, check the Tomcat 6 classloader how-to on
the web site. But if you do this, I would suggest you regard it as an
emergency hack and look urgently at ways to remove it.
- Peter
ideas how we can get a much larger PermSpace going?
Change to an x64 Windows architecture, or change to a non-Windows OS (may not
be large enough, even so), or run two (or more) Tomcat instances on the machine
and split the contexts between them so that you don'
I think he wants it in XML format, and be able to bind it to an object model
On Wed, May 27, 2009 at 1:29 PM, Mark Thomas wrote:
> Mike Oliver wrote:
>> Ok perhaps I was unclear.
>>
>> I have multiple instances of Tomcat installed and need to manage the
>> applications deployed on those instanc
OS?
Tomcat version?
Anything in the logs?
> -Original Message-
> From: meili100 [mailto:steve@yahoo.com]
> Sent: 26 May 2009 06:21
> To: users@tomcat.apache.org
> Subject: Why a dir names "ondemand" is not accessable under webapps/ ?
>
>
> I have multiple subdirs under webapps/ . All o
to make it work?!?!
I think you have a firewall problem. Check your firewall configuration on the
computer - is port 8080 open?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
> From: David kerber [mailto:dcker...@verizon.net]
> As a
> result, right now I don't have any way of generating enough
> load to find
> a bottleneck in the overall servlet (which is a very good thing!!).
That's a win. Congratulations!
t run Tomcat as root.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
ve the files.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
e, or whether you just want
it started when the user starts your program. Be aware of your user base if
you choose to do this. In general, I get rather upset when an installer
installs something that runs at startup on my machine a
;t whether that 4% matters. It's really about how
much bandwidth you're chewing up with static data. Unless the servers
are hosted at a Tier 1 provider with OC12 bandwidth or higher, it
really isn't going to make any difference from my experience.
peter
On Mon, May 18, 2009 at 4:34 PM,
ull capacity, that's
an interesting result as it implies the box has spare capacity and there's
contention elsewhere - often lock contention, as David Kerber has recently seen!
It just seems a shame to waste the opportunity
;s finished. (Strange that httpd
> dramatically increased its transfer rate when requesting the
> 16MiB file!)
Looks interesting. Is there any way of finding out what the rate-limiting
factor is in each case - CPU, memory bandwidth, memory capacity, disk bandwidth?
, network
bandwidth etc, number of concurrent sockets open etc..., but they're the
standard ones you'd encounter on any operating system.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache
> From: André Warnier [mailto:a...@ice-sa.com]
> Thanks, Chuck and Peter, for the clarifications on OOM.
> I believe that unconsciously, with my "large object
> reservation" theory,
> I was vaguely remembering something I had read some time in the past.
> So I searched
ather than use Tomcat?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
; you could weight it based on the relative sizes of the
sessions. A heavy session increments the counter by 10, a light one by 1.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.ap
way - if you want a coding nightmare, try to
handle *all* malloc() fails in a reasonably sized C program. Or kalloc() calls
in a kernel :-). When you realise that running out of memory means you can no
longer guarantee to allocate any new memory for any purpose at all, the scal
. If a set of lines represents one transaction, why would you ever not
send it and try to process it atomically? Or is it acceptable to have
part-transactions within your system?
- Peter
-
To unsubscri
mething's overwritten it or a bit's flipped due to
bad RAM.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
is IP, and you have enough
concurrency that latency shouldn't be a problem.
That said, if a client has multiple data items to send in rapid succession,
does it accumulate those and batch them, or does it send each one as a
e result?
> The outside world connection is a full T-1, running about 40% - 50%
> capacity on average.
Dedicated or contended bandwidth? Can you get the other 50-60% out of it if
you try hard from another machine on the same network, or do you never get it
#x27;s your external connectivity like? Gigabit from the router is
irrelevant if you're trying to fit 20 Mbit/s of data down a 10 Mbit/s pipe :-).
- Peter
* Names elided to protect the innocent, but a manufacturer's claim that a
particular spec of router could handle
ed and destroyed, and
don't start new sessions if that counter is higher than your threshold.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
alf-remember Jakarta Commons has one that can be adapted
if you get to that stage.
> Thanks a ton!!!
No problem.
- Peter
* Yes, I did implement one. I still have the scars.
-
To unsubscribe, e-mail: users-unsubscr...@tomca
e.
Another good point. I was assuming something that isn't necessarily true,
namely that criticalProcess was created for just that sync block.
Meh, why don't I bow out and leave Chuck to give all the good answers? ;-)
- Peter
---
just add overhead. They're not further places for
contention to occur.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
t with one lock
around the counter updates (locked on one object) and another lock in your
decrypt/log/respond code that's purely around the logging section (locked on a
different object). Then I'd re-evaluate - run, take another thread dump and
see where
where speed
matters!
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
data being written, I've seen
better than a factor of 10 improvement by adding write cache in this way.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
ut would be a really easy test to
> see if it helps my performance issue.
Decrypt: parallel.
Send ack: parallel.
Increment counters: synced.
Write to log file: synced (or you'll have some very odd stuff happening).
- Peter
--
re... and that sync
may well be the bottleneck.
You could detect this by taking a thread dump in the middle of the day, and
seeing whether a significant number of threads were waiting on either of your
sync objects. If there are a significant number, consider re-engineering this
critical piece
ert as they're always one-offs, but you can
generate one from your company CA if you have it. Clearly if you don't have a
company CA, you can't do this!
- Peter
-
To unsubscribe, e-
Tomcat version?
Java version?
OS?
> -Original Message-
> From: david owens [mailto:ym...@yahoo.com]
> Sent: 01 May 2009 15:52
> To: users@tomcat.apache.org
> Subject: hot-deploy problems
>
>
> I hope you folks are not sick to death of this question, but
> I have still not found a satisfact
parser's preferred solution to
tell it where the local DTD cache is?
This is just an idle thought - I've no idea how or even whether it would work
in Tomcat, as I don't know how you'd set up the cache location. But most XML
parsers have one
epends on the toolset you have available.
- Peter
* Before I get descended upon by a side of stick-wielding real ale enthusiasts
wearing bells, I should probably point out that I've played for, run sound for
and da
for
> RESOURCE HUNGRY WEB APPLICATION
I'm going to make a prediction: it doesn't matter how much RAM you allocate,
you won't have enough. You will still run out of memory and have to restart
Tomcat. I think this, because I think you have a mem
ding most of its time in GC.
You can prove it's a memory leak by increasing the amount of RAM available to
the JVM. If you still run out of memory - but a little later - it's almost
certainly a leak.
- Peter
-
ce it has become slow?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
ce.
Because httpd doesn't serve Java servlets (and Tomcat doesn't serve perl and
PHP efficiently, though it's pretty good at static content). Even if httpd did
everything, someone would write a "pure Java" web server and servlet container,
because Java developers are li
0x22efe9a8, free space=510k
> > Native frames: (J=compiled Java code, j=interpreted, Vv=VM
> code, C=native
> > code)
> > C [libocijdbc10.so+0x123e6]
> > C [libocijdbc10.so+0xe248]
> > Java_oracle_jdbc_driver_T2CState
> From: Bart Ophelders [mailto:bartopheld...@hotmail.com]
> If I put an Apache HTTP server in front of Tomcat, will this
> influence performance?
Yes.
- Peter
-
To unsubscribe, e-mail: users
o solve this issue.
[...]
> # An error report file with more information is saved as
> hs_err_pid29022.log
Read the error log. See if it gives you any more information. At the very
least, it'll tell you what the JVM was doing at the t
ant to
analyse several crash dumps to look for common factors.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
thread dump on a convenient
web site and posting a link?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
comes in. *Something* is spawning threads -
rather than guess what's doing it, let's get some evidence of what they're
doing? Then we stand a better chance of working out what's spawning them.
- Peter
-
> From: connossieur [mailto:anand.b...@aricent.com]
> There is no problem in the application code.
How have you proved this?
Take a thread dump (you're on Java 1.6, so you can use jstack). What are the
threads doing?
you need to do that, and when do you not really need it
Ye gods. You'll have a religious war between the presenters!
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
ut not closed, so it will stay open until a GC tidies it up.
$deity only knows what the original developer was thinking when they wrote that.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
(and ensuring the
process at least starts as root, which is why jsvc is so important) will be all
you need to do. With your server.xml? Nobody on the list will have any idea.
Give us some more information, please - we're not psychic!
- Peter
-
do a
> full GC interactively, but from a Linux command-line ?
I'm not aware of one, but I'm not an expert. I await the experts' comments
with interest!
- Peter
-
To unsubscri
nd out what's holding onto the socket. It's a long,
long time since I had to do this in Java, so I have no idea of the appropriate
tools - my brain's telling me Son of Strike, which is for the .Net CLR and
*definitely* wrong!
Does that help? Or is it clear as mud?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
f you see connections in
FIN_WAIT_2, the client got the ACK and is sitting around waiting for Tomcat to
close the connection and send a FIN.
- Peter
P.S. Yes, I used to teach this stuff ;-).
-
To unsubscribe, e-m
ey difference somewhere?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
the *quality* of the
components, rather than just the *quantity*. And that's why I'd love to see
the hard data because, like you, I don't know :-).
- Peter
-
To unsubscribe, e-mail: users-
> From: Gregor Schneider [mailto:rc4...@googlemail.com]
> On Wed, Apr 1, 2009 at 4:22 PM, Peter Crowther
> wrote:
> >
> > And, indeed, that Apache + mod_security + mod_jk + Tomcat
> has fewer vulnerabilities than just Tomcat.
> >
>
> Since I'm interest
like saying "if you do not have a lock on your front door,
your front door will not be locked which is not a good idea." Why would anyone
*not* run using jsvc or iptables?
- Peter
-
To unsubscribe, e-mail:
pt due to poor AV
performance.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
> From: André Warnier [mailto:a...@ice-sa.com]
> Peter Crowther wrote:
> > I'm also particularly amused by the topmost set of bars in
> figure 2, given how proud the perl-ites are of their RE
> library and performance ;-).
> >
> You didn't expect for a minut
scaling the front-end services - but
that's getting *really* off-topic!
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
n. I wonder how many tonnes of carbon
would be saved per annum if Facebook were reimplemented in something that
allowed multiple threading and smaller sessions, such as Mono/ASP.Net or
glassfish/servlets?
- Peter
itial read to
have a reasonable methodology.
Incidentally, the figures in that IBM paper are with httpd+mod_jk or
lighttpd+mod_proxy in front of Tomcat - the raw Tomcat throughput would be
higher.
- Peter
-
To unsub
dleware compatibility, etc. would be the deciding
factors. It is
also reassuring to developers of both language runtimes and web servers, that
enhancements to either can offer performance improvements to the community."
- Peter
-
rowsers to
authenticate based on the common name in the certificate, and the hostname that
the browser is using to access the site.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For add
ar cert,
and can authenticate *.example.com (for example).
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
> From: i_am_superman [mailto:ee...@objectivation.nl]
> I don't think my client will allow me to run a public SSL
> website any port but 443 (firewalls).
Then you'll also need a second IP address on the server, as I'm sure you've
already reali
ns to direct the user to "the other" app at the appropriate time!
Does this help, or have I answered the wrong question?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
F
mcat?
What Tomcat revision are you running? There were two different major versions
of "Tomcat 5". Version numbers are 5.x.y - what are the values of x and y? If
you tell us that, we can give you more help.
- Peter
---
cifying the source and
destination port numbers - though as you already know that's subject to
considerable latitude in interpretation! In particular, if one of those values
is a well-known port (http://www.iana.org/assignments/port-numbers), the
corresponding protocol RFC-SHOULD* be in use..
pabilities, as Workstation initially provided
enhanced I/O (for example the ability to connect to USB devices on the host)
whereas Server initally scaled to multiple guests on one host.
And, yes, both put a lot of drivers onto the host!
- Peter
lly share
> something?
They share classes, and hence they can share (say) a singleton or a static
variable.
> And, does that somehow relate to what the original OP of another
> thread, who was talking about a "static variable" bein
ificate authentication (distributed by non-network
means such as USB keys) and/or a SecurID token or similar. All of which pushes
the cost of security to the point that the application may be unworkable.
What is "good enough" f
at leaving massive security
holes in any technological solution - emailing their password to a colleague's
Hotmail account, writing down login details on a Post-It or just leaving their
computer unlocked as they nip to the loo. What security is &
es. But be assured that if
someone can read the request your browser sends to the server, they can hijack
your session.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
ide the webapps
> directory and work directory, but cannot start.
What error message(s) are you seeing in Tomcat's log files?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For addi
code takes time. If the server code is never called from the API,
all you lose by putting a copy of the jar in your webapp's WEB-INF/lib is some
storage space.
- Peter
-
To unsubscribe, e-mail: users-unsu
> From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
>I have to make a JSP invoke a Class which is in a .jar
> file out of Tomcat
> Home,
>
> How can I deal with it?
Add the jar to the WEB-INF/lib directory of the webapp with the JSP in.
e whether the spec
allows it.
> and how many are being called to say that something is going on ?
Each listener you have defined will be called exactly once.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@
h
> erasing the webapps files.
The file erase would not happen until the listener had returned. To my
knowledge, that's the only guarantee you get with such a listener.
- Peter
-
To uns
ter the body
tag.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
the header), I think no bytes of response must have been sent yet - is
the include far enough up the file that this is the case?
Or someone more experienced will tell me this isn't a problem with servlets :-).
- Peter
---
areful in how it registers the
protocol handler.
If you're trying to do something else, post more details to the list and we may
be able to help!
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
the setup version that installs
the service. Several of us on this list are puzzled about why they are not
included.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-ma
#x27;re feeling mean.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
(.Net app) that spends c. 98% of
its time in the GC as it loads state from disk.
You also need to decide what's "good enough". The difference in "real-world"
performance between spending 0.1% and 1% in the GC is negligible; the
difference between 10% and 90% is rather obv
Or do you want both apps to be in one Tomcat instance, accessible from the same
port, but able to be stop them independently?
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional co
K compliance for all Windows software. Ain't going to happen,
unfortunately.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
does not support
the -server argument. You can configure it with ./configure -java=/path/to/jdk/
.
good luck,
Peter
- Original Message -
From: "Leon Rosenberg"
To: "Tomcat Users List"
Sent: Thursday, 26 February, 2009 10:20:10 GMT +02:00 Athens, Beirut,
Bucharest,
= 8 separate instruction execution units, 8 program
counters, executing up to 8 instruction streams in parallel.
The cores on one die share some infrastructure like cache and memory access,
but the interesting feature here is that this machine can run 8 threads
concurrently.
- P
ingSelector.java:305)
Thanks for any help,
Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
; JkMount /servlet/* ajp13
> JkMount /scripting/servlet/* ajp13
Tomcat handles /servlet and /scripting/servlet. Therefore httpd serves files
under /scripting/manual.
- Peter
-
To unsubscribe, e-mail: users-unsubscr
s by hand. With magnets."
(http://www.userfriendly.org)
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
> From: Venkata Siva Gangavarapu [mailto:siva.gangavar...@gvkbio.com]
> I would like to know how to configure SSL in Tomcat6.0.
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
- Peter
-
To unsubscr
t's changed over time!
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
you have no control? Those third
parties' environments are still "production environments", but you have no
control over them.
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or
eem to address this particular configuration, and my knowledge of Java
isn't sufficient to dig into the innards of Tomcat.
///Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
ntroduce two pieces of software into the mix. You might be pleasantly
surprised!
- Peter
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
701 - 800 of 1896 matches
Mail list logo