IRC log for #tomcat on 20080204

01:01.13*** join/#tomcat pandaren (n=pandaren@58.33.191.213)
01:07.44*** join/#tomcat kanai (n=kanai@124.32.114.226)
01:13.46*** join/#tomcat apaapa (n=doublecl@60.54.90.247)
01:14.30apaapacan anyone tell me how to make tomcat auto-start during boot in linux platform?
01:15.03lykenapaapa: there are some init scripts around the place
01:15.42apaapalyken: i got the script but i dunno how to make it work...and where to put it
01:15.58lykendo you know how to install init scripts on linux ?
01:16.05lykenif you dont you should check out how to do that for your distro
01:16.14apaapaok...thank
01:16.23apaapaanother thing is this script ok? http://www.pastebin.ca/887367
01:18.01lykenassuming you have an init.d like system then it should work
01:19.17apaapai'm using centos5 ...i guess it have one
01:19.27lykenyer
01:19.53apaapabut i dunno how to install it...asked in centos channel but no one reply :(
01:21.51lykenive never used centOS
01:22.05apaapait's ok...thanks for the help
01:22.35lykenid assume it would be something along the lines of redhat though
01:23.04lykeni would also suggest you sit and learn the OS you are deploying your applications on :)
01:24.08apaapathanks agin
01:24.10*** part/#tomcat apaapa (n=doublecl@60.54.90.247)
01:55.33*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
03:24.06internat85*pokes lyken*
03:39.26lykenargh my freakin eye!
04:11.41jwisherdoes tomcat automatically detect and use the locale the user's web browser wants the most?
04:15.44jwisherwhy is it that I can fidn hardly any information on locales with tomcat
05:02.34*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
08:35.05*** join/#tomcat kjkoster5489 (n=kjkoster@a1190.upc-a.chello.nl)
09:04.52*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-2fdc7ce47ec72105)
09:11.19*** join/#tomcat kanai (n=kanai@124.32.114.226)
09:18.42*** join/#tomcat AlexWorX (n=alexworx@port-87-234-51-211.static.qsc.de)
09:59.16*** join/#tomcat AlexWorX (n=alexworx@port-87-234-51-211.static.qsc.de)
10:00.55*** join/#tomcat zall (n=z@202.152.25.194)
10:19.40*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
10:39.27*** join/#tomcat acidjnk (i=acid@p5B3F1E86.dip0.t-ipconnect.de)
10:50.28*** join/#tomcat kanai (n=kanai@124.32.114.226)
11:23.03*** join/#tomcat internat85 (n=nf@dsl-58-6-125-95.qld.westnet.com.au)
11:26.36*** join/#tomcat tijn (n=tijn@77.222.64.84)
11:37.25tijnhi ppl! i have a problem with my server load, and i'am not sure where to look for the problem, i use Centos 5.0 , JDK 1.5.0 and Tomcat 6.0.13
11:40.20tijnthe problem is: the java process showing in top sometimes peaks a little, but the peak does not lower anymore! so the next peak happens ontop of the previous
11:40.42tijnmeaning the load on the machine is now at 200% (cpu)
12:25.07djrand if you restart tomcat?
12:26.53tijnafter a restart, it goes well for a while
12:27.01tijnbut after a day the same thing happens again
12:27.52tijnatm it has 515 java processes
12:29.28tijncould it be buggy programming of the java apps? (open child threads, but dont close them)
12:32.55kjkoster5489without more info it could be anything.
12:33.11tijnHey dont i know you? :)
12:33.16kjkoster5489?
12:33.25tijnyou wrote a client for zabbix
12:33.25kjkoster5489From what?
12:33.36kjkoster5489Yes, I did. An agent, te be precise.
12:33.51kjkoster5489s/te/to
12:33.52tijncool :)
12:34.03kjkoster5489:)
12:34.21tijnfunny ;)
12:34.29tijnyou are dutch aren't you?
12:34.43kjkoster5489Yes, you are too, from your name. Am I right?
12:34.48tijnyep :)
12:35.08tijnwhere are you from?
12:35.08kjkoster5489Small world.
12:35.13kjkoster5489Den Haag.
12:35.14tijnyes indeed
12:35.21tijnaha, i am fron Hengelo
12:35.23kjkoster5489Working in Amsterdam at the moment.
12:35.29kjkoster5489That's faaar. ;-)
12:35.37tijnhehe
12:35.39*** join/#tomcat matt8463 (n=matt@popper.yospace.com)
12:35.53kjkoster5489515 tomcat processes or random Java processes?
12:36.03tijnrandom java processes
12:36.14tijnwell, random, it looks forked
12:36.52kjkoster5489Sounds like a lot to mee. Are you sure they're actual processes and not threads?
12:37.00kjkoster5489s/mee/me
12:37.21tijnwell it shows up in top
12:37.56tijnto be clear, i am not an tomcat/java person i administer the server
12:38.11kjkoster5489I figured that. :)
12:38.13tijn;)
12:38.16kjkoster5489Do you use Zapcat?
12:38.20tijnnot yet
12:38.39tijnalmost finished the zabbix install on 20 servers
12:38.53tijnafter that we will implement zapcat
12:38.53kjkoster5489Cool, let me know how you fare.
12:38.59tijnwill do!
12:39.38kjkoster5489So you start only the Tomcat and not the forked processes?
12:39.45tijnyes
12:40.24tijnand after a day or so cpu load is 199%
12:40.51tijnis it possible a process is started from within a script?
12:40.55kjkoster5489If you check with ps, do you have 515 processes or just the one Java process.
12:41.10kjkoster5489Sure, Java is just an app, like any other.
12:41.25tijnps shows 1 java process
12:41.27kjkoster5489Plus, in Java I can call System.exec(...).
12:42.14kjkoster5489Then it looks like each thread shows up as a separate process in top. This must be Solaris then.
12:42.34tijnnope, Centos
12:42.37kjkoster5489Ok.
12:43.12tijni read a mail from a list suggesting threads are started from within the code but not properly closed (parent process will be killed off, but childeren are not)
12:43.18tijncould this be something?
12:43.18kjkoster5489You can make thread dumps from the Java process and trawl through them to find out what it's doing.
12:43.21kjkoster5489Hmm.
12:43.29kjkoster5489Maybe you can even use jconsole for that.
12:43.35kjkoster5489What version of Java are you using?
12:43.51tijn1.5.0
12:44.56kjkoster5489Try hooking up jconsole and see what threads are running.
12:45.14tijnok, moment please, i will get a dev guy ;)
12:45.20kjkoster5489Do that periodically, preferably with a Java dev.
12:45.26kjkoster5489Sure
12:46.20*** join/#tomcat xanoxate (n=xanoxate@212.158.218.85)
12:52.43*** join/#tomcat tterm (n=tterm@p57AB6ABA.dip.t-dialin.net)
12:53.06ttermhello all
12:53.39ttermIs it possible to use autodeploy wirh an embedded tomcat?
12:53.55tijnkjkoster5489, ok i caught a dev person :)
12:54.10kjkoster5489ool
12:54.10tijnhe will have a deeper look into it with jconsole
12:54.33kjkoster5489There is a threads tab, it will list the threads and their backtraces.
12:54.49tijnah ok, that should be usefull :)
12:54.50kjkoster5489Look for huge numbers of identically-named threads.
12:55.27tijnok, and if there are alot, what could be wrong?
12:55.28kjkoster5489The dev may be able to tell you what threads are harmless and of which threads he never expected there to be so many of. :)
12:55.38tijnah ok
12:55.54tijnand via the backtrace we can identify where the threads come fron
12:55.57tijnfrom*
12:56.06kjkoster5489Maybe you have a worker thread that does not finish on time, then a second is started for the same job and so on.
12:56.11kjkoster5489Yes.
12:56.20tijnaah ic
12:56.23tijnnice!
12:56.28tijnthnx for your help!
12:56.31kjkoster5489Its heavily application dependent what is good and what is bad.
12:56.37kjkoster5489I'm curious what you find.
12:56.42tijnme too :)
12:56.45tijni will keep in touch
12:56.51tijnyou are always on this channel?
12:56.56kjkoster5489Using zapcat you can plot thead count in Zabbix.
12:57.06kjkoster5489So you can see when it expoldes.
12:57.10kjkoster5489explodes.
12:57.17kjkoster5489Yes, usually.
12:57.27kjkoster5489Or on #zabbix
12:58.43tijnah ok
12:59.20tijnwell, i am going to hunt down some devs and discuss this info with them ;) thnx!
13:27.54*** join/#tomcat acidjnk (i=acid@p5B3F157F.dip0.t-ipconnect.de)
13:46.54*** join/#tomcat djr (n=djr@sighup.se)
14:16.11ttermI need just a no or yes for my question.
14:24.29*** join/#tomcat kjkoster5489_ (n=kjkoster@a1190.upc-a.chello.nl)
14:33.47*** join/#tomcat kjkoster5489 (n=kjkoster@a1190.upc-a.chello.nl)
14:35.28*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
14:37.24*** join/#tomcat kjkoster5489__ (n=kjkoster@a1190.upc-a.chello.nl)
15:10.48*** join/#tomcat Nicke (n=niclasa@h161n2fls31o808.telia.com)
15:50.23*** join/#tomcat AlexWorX (n=alexworx@port-87-234-51-211.static.qsc.de)
15:53.10*** join/#tomcat chillitom (n=tom@87-194-123-85.bethere.co.uk)
15:55.20chillitomIs there a way to programatically configure a directory as a new context?
15:56.32chillitomi.e. I'd like to be able to use POJ to specify a directories external to my web app which should be served as static content without modifying server.xml
15:56.35*** join/#tomcat dop3 (n=s3@201.21.209.80)
15:59.28andytwhy not use mod_jk and use apache to manage the static content?
15:59.44*** join/#tomcat deepjoy (n=dj@122.167.245.200)
15:59.59*** part/#tomcat xanoxate (n=xanoxate@212.158.218.85)
16:05.44*** join/#tomcat ^Quiddity (n=steve@ng1.cptxoffice.net)
16:09.41*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
16:17.51chillitomandyt, would like the static content to be configured per webapp rather than per machine
16:18.10chillitomand optionally enabled and disabled programatically
16:29.41*** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
16:56.43*** join/#tomcat User110 (i=User@cpe-76-180-32-197.buffalo.res.rr.com)
17:37.06*** join/#tomcat ozkan (n=opera@88.248.140.104)
17:42.43*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
17:44.10*** part/#tomcat ozkan (n=opera@88.248.140.104)
17:57.52*** part/#tomcat matt8463 (n=matt@popper.yospace.com)
18:03.07*** join/#tomcat thesasa (n=sasa@c-76-21-127-0.hsd1.ca.comcast.net)
18:40.46*** join/#tomcat gregor_k (n=a@stgt-4dbe0d8d.pool.einsundeins.de)
18:48.33*** join/#tomcat thesasa (n=sasa@c-67-180-85-187.hsd1.ca.comcast.net)
19:07.50*** join/#tomcat blue_asterisk (n=blue_ast@ppp-69-233-82-84.dsl.sndg02.pacbell.net)
19:48.52*** join/#tomcat AlonzoTG (n=chatzill@dsl092-144-065.wdc2.dsl.speakeasy.net)
19:49.21AlonzoTGcan someone please explain: 66.92.144.65/assay/ ?
19:59.37*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
20:23.12*** join/#tomcat matt7656 (n=matt@host86-141-3-0.range86-141.btcentralplus.com)
20:31.46*** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
20:31.54*** part/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
20:32.13*** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
21:03.45*** join/#tomcat acidjnk (i=acid@p5B3F4375.dip0.t-ipconnect.de)
21:22.25andytdoesn't resolve
21:28.24jasonbnope
21:41.01*** join/#tomcat matt_w (n=matt@host86-141-3-0.range86-141.btcentralplus.com)
21:53.22*** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu)
22:16.55*** part/#tomcat ^Quiddity (n=steve@ng1.cptxoffice.net)
22:19.36*** part/#tomcat remiss (i=roger@remiss.org)
22:24.24*** join/#tomcat InsomniaCity (n=insomnia@raptor.ukc.ac.uk)
22:25.06InsomniaCityHi! I'm having a bit of trouble with getResourceAsStream on tomcat 5.5.23 - it returns null for anything I put in.
22:26.12*** join/#tomcat ox1 (i=trallall@gve-gix-bbcs-dynip-158-054.vtx.ch)
22:27.26InsomniaCityah, PEBKAC, eclipse wasn't putting the file in the war.
22:27.31*** part/#tomcat InsomniaCity (n=insomnia@raptor.ukc.ac.uk)
23:08.48*** join/#tomcat dogmeat (n=Bob@unaffiliated/dogmeat)
23:30.30*** join/#tomcat jannu (n=jannu@hoas-fe3cdd00-15.dhcp.inet.fi)
23:33.13jannuI'm using tomcat-5.5.20, sun-java-1.6.00 on Debian etch and trying to deploy a webapp through the mod-jk connector
23:35.02jannuthe problem is that the static resurce I've defined in server.xml doesn't start on server startup. instead I get the "Document base does not exist or is not a readable directory" error
23:35.39jannuwhat would be the best way to debug this problem?

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.