IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.70 MB
Powered by
Channel Info
Network: freenodeChannel: #tomcat |
Search in www.irclog.org
Log from #tomcat at freenode 2006-08-04
[00:15]<rrsjg2>[Utah]tristanbob: Which exact Tomcat version? Which Java brand & version?
[00:16]<[uvzx]vzysvzg2j2>jasonb: hello. Apache Tomcat/5.0.28
[00:17]<[uvzx]vzysvzg2j2>1.4.2_11-b06 Sun Microsystems Inc.
[00:17]<rrsjg2>[Utah]tristanbob: First thing: upgrade to Tomcat 5.5.17. It should be somewhat faster.
[00:17]<rrsjg2>[Utah]tristanbob: Upgrade to Sun JDK 1.5.0_0x, that will also be faster than 1.4.2.
[00:18]<rrsjg2>[Utah]tristanbob: Also, if there are bugs in Sun JDK 1.4.2 where it didn't take full advantage of RAM & CPU on Windows, the bug(s) are likely fixed in JDK 1.5.0_0x.
[00:18]<[uvzx]vzysvzg2j2>jasonb: - those are probably great ideas - but the vendor of our application requires those versions :(
[00:19]<[uvzx]vzysvzg2j2>we have bumped up the JVM memory settings, but it didnt' help much
[00:22]<rrsjg2>Then the vendor is requiring slow performance.
[00:22]<rrsjg2>That is, slow and/or buggy.
[00:23]<rrsjg2>[Utah]tristanbob: Another thing you might try is to switch between the "-server" and "-client" JVM startup switches. The behavior is a little different, but my guess is that it won't change performance much.
[00:24]<rrsjg2>Tomcat 5.0.x is known to be buggy, including bugs that degrade performance.
[00:24]<[uvzx]vzysvzg2j2>-server should be better performance, right? have you done that on a windows box? where is the best place to configure it?
[00:24]<rrsjg2>Tomcat 5.0 has not been the latest stable release of Tomcat for quite a while now.
[00:24]<[uvzx]vzysvzg2j2>jasonb: even newer releases of 5.0?
[00:24]<[uvzx]vzysvzg2j2>I see
[00:25]<rrsjg2>I have done that on a windows box, yes. The place to configure it is wherever you're setting JAVA_OPTS.
[00:25]<[uvzx]vzysvzg2j2>where is the default location?
[00:25]<rrsjg2>The latest stable version isn't a Tomcat 5.0 at all. It's a newer branch of Tomcat, version 5.5.x.
[00:27]<rrsjg2>Where you configure the environment settings and startup switches depends on lots of things having to do with where you got your Tomcat and what procedure you followed to install it. So, I could tell you a place to set it, but I could easily be wrong for your particular installation, and it could easily not take effect.
[00:27]<rrsjg2>You should probably start looking in bin/catalina.bat though.
[00:34]<[uvzx]vzysvzg2j2>jasonb: ok, will check there. Thanks for your time!
[00:35]<rrsjg2>[Utah]tristanbob: You're welcome
[00:37]<rrsjg2>[Utah]tristanbob: Also, if you have CPU & RAM time left, you should edit conf/server.xml and increase the number of connector threads. That may help mroe.
[00:37]<rrsjg2>more.
[00:37]<rrsjg2>[Utah]tristanbob: You should actually adjust that first. (don't ask me why I didn't suggest that first.. heh)
[00:38]<[uvzx]vzysvzg2j2>:) I will look at the right now
[00:38]<rrsjg2>[Utah]tristanbob: Also, your startup switches determine how much RAM you're giving Tomcat to operate inside of. You could increase the RAM allocation to the JVM as well.
[00:40]<[uvzx]vzysvzg2j2>I believe we increased the JVM memory - that is shown in the web manager under "complete server status"
[00:41]<rrsjg2>Yes.. what does it say?
[00:41]<rrsjg2>And, how much RAM does that machine have?
[00:50]<[uvzx]vzysvzg2j2>2 GB
[00:50]<[uvzx]vzysvzg2j2>jasonb: here is the line in server.xml
[00:50]<[uvzx]vzysvzg2j2> <Service name="Catalina">
[00:50]<[uvzx]vzysvzg2j2> <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="80" redirectPort="8443" maxSpareThreads="75" maxThreads="150" minSpareThreads="25">
[00:50]<[uvzx]vzysvzg2j2> </Connector>
[00:50]<rrsjg2>It's okay to paste in a few lines at a time.
[00:51]<rrsjg2>So your machine has 2GB RAM.. how much does the Complete Server Status page saying the JVM can use, max?
[00:51]<[uvzx]vzysvzg2j2>we set it at 512 MB
[00:52]<[uvzx]vzysvzg2j2>the JVM memory
[00:52]<rrsjg2>You should set it to 1GB for now.
[00:52]<[uvzx]vzysvzg2j2>ok, no prob
[00:53]<rrsjg2>(unless you're running other memory-munching software on the same machine)
[00:53]<[uvzx]vzysvzg2j2>no - just tomcat
[00:54]<rrsjg2>So, "-Xmx1024M -Xms1024M"
[00:54]<[uvzx]vzysvzg2j2>JVM
[00:54]<[uvzx]vzysvzg2j2>Free memory: 471.07 MB Total memory: 506.31 MB Max memory: 506.31 MB
[00:54]<rrsjg2>Yeah, that's a bit too low for your situation.
[00:54]<[uvzx]vzysvzg2j2>wait, I need to restart it
[00:55]<[uvzx]vzysvzg2j2>JVM
[00:55]<[uvzx]vzysvzg2j2>Free memory: 935.18 MB Total memory: 1012.62 MB Max memory: 1012.62 MB
[00:56]<rrsjg2>That's better.
[00:56]<rrsjg2>Now check the thread counts in server.xml.
[00:56]<[uvzx]vzysvzg2j2>that should be what I pasted
[00:56]<rrsjg2>oh..
[00:57]<rrsjg2>Okay, make it say: <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="80" redirectPort="8443" maxSpareThreads="200" maxThreads="300" minSpareThreads="25">
[00:57]<rrsjg2>Then restart Tomcat.
[01:00]<[uvzx]vzysvzg2j2>ok the manager says I have this now: "Max threads: 300 Min spare threads: 25 Max spare threads: 200 Current thread count: 25 Current thread busy: 3"
[01:01]<[uvzx]vzysvzg2j2>does that look right?
[01:01]<[uvzx]vzysvzg2j2>shall I load test it now?
[01:01]<rrsjg2>It looks quite a bit better.
[01:02]<fdcgg>yo jason!
[01:04]<rrsjg2>The way you load test it is to get on your Linux machine and type: ab -k -n 200000 -c 16 http://win2k3/HelloWorldExample.html
[01:04]<rrsjg2>lyken: Hi there!
[01:05]<rrsjg2>So yeah, go ahead and load test it however you normally would on Windows. :/
[01:35]<fdcgg>welps im off to get a plane to SFO
[01:40]<rrsjg2>cool!
[01:40]<rrsjg2>So you'll be here this weekend?
[01:45]<fdcgg>yup
[01:45]<fdcgg>i arrive at lunchtime tomorrow
[01:49]<rrsjg2>Excellent!
[01:49]<rrsjg2>You're going to have lots of fun.
[01:50]<fdcgg>hehe
[01:50]<fdcgg>well i better go and wait for the taxi
[01:50]<fdcgg>ill see ya over there :)
[01:51]<rrsjg2>Okay. Have a good flight!
[01:51]<rrsjg2>Stretch your legs periodically!
[01:51]<fdcgg>lol :)
[01:51]<rrsjg2>:)
[03:07]<jw2fjjm>Is he really going to meet you?
[03:18]<wjllslyzyv>anyone alive in here that could help me?
[03:18]<wjllslyzyv>I need to get tomcat working with fedora core 5 and a project called subsonic
[03:18]<wjllslyzyv>having a lot of trouble with gnu java / sun java
[03:19]<jw2fjjm>Is this GNU Java "vs." Sun Java?
[03:22]<wjllslyzyv>technically yes.. for a topic war no
[03:23]<wjllslyzyv>I'm not trying to get advice on what is better if that's what your asking
[03:26]<jw2fjjm>So if GNU is giveing you trouble, why not ditch it and stick with Sun's!
[03:27]<jw2fjjm>And why the hell doesn't Jahia have installation guide... Darnit.
[03:29]<wjllslyzyv>not so easy
[03:29]<wjllslyzyv>I've done that and I still get errors
[03:30]<wjllslyzyv>first off.. tomcat just gives me a blank page if I go to http://192.168.0.101:8080
[03:31]<jw2fjjm>Wolfspirit, What's the name of the webapp you are testing your stuff with?
[03:31]<wjllslyzyv>if I go to http://192.168.0.101:8080/subsonic/index.view I get a bunch of java.lang.NoClassDefFoundError
[03:31]<wjllslyzyv>subsonic
[03:31]<fuyszzyg>i need help with the instalation in redhat
[03:31]<wjllslyzyv>it's a media streamer/web jukebox
[03:31]<jw2fjjm>How about just http://.../subsonic?







