IRC log for #tomcat on 20120330

00:58.30*** join/#tomcat onats (~onats@unaffiliated/onats)
01:29.54*** join/#tomcat PradHand (~Adium@142.177.91.253)
02:28.30*** join/#tomcat dbgster (~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com)
02:33.28*** join/#tomcat onats (~onats@unaffiliated/onats)
03:10.16*** join/#tomcat Nick_99 (~test@109.86.160.90)
03:44.31*** join/#tomcat onats (~onats@unaffiliated/onats)
04:21.06*** join/#tomcat Rahul (~rahul.a@183.82.99.68)
04:25.28*** join/#tomcat internat (~nf@60.241.102.25)
04:34.04*** join/#tomcat pcavs (~Adium@cpe-24-90-26-236.nyc.res.rr.com)
04:34.49*** part/#tomcat pcavs (~Adium@cpe-24-90-26-236.nyc.res.rr.com)
04:39.06*** join/#tomcat mturk (~mturk@redhat/jboss/mturk)
04:45.49*** join/#tomcat macrover (~macrover@ip70-180-159-214.lv.lv.cox.net)
06:08.45*** join/#tomcat lkoranda (lkoranda@nat/redhat/x-gqpcwgsmvxrtokhs)
06:23.50*** join/#tomcat petteyg (~quassel@ns1.foldspace.org)
06:56.04*** join/#tomcat stix (~stix@193.89.191.209)
06:58.56*** join/#tomcat opalka (~opalka@redhat/jboss/opalka)
07:48.50*** join/#tomcat jtheuer_ (~jtheuer@91-64-242-37-dynip.superkabel.de)
07:57.36*** join/#tomcat elprespufferfish (~elprespuf@c-76-121-49-103.hsd1.wa.comcast.net)
09:23.01*** join/#tomcat macrover (~macrover@ip70-180-159-214.lv.lv.cox.net)
09:46.18*** join/#tomcat acidjnk22 (~havenone@p4FDFCA67.dip.t-dialin.net)
09:50.47*** join/#tomcat onats (~onats@unaffiliated/onats)
10:31.03*** join/#tomcat sh_sh (~chatzilla@dc-dynip-187.gfz-potsdam.de)
10:31.24sh_shhow can i pass multiple arguments to a cgi script?
10:31.56sh_shall the usual stuff like "script?a=b&c=d" does not seem to work
10:51.26*** join/#tomcat dbgster (~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com)
11:06.27*** join/#tomcat wh1zz0 (~J@41.190.3.191)
11:16.09*** join/#tomcat onats (~onats@unaffiliated/onats)
11:19.12*** join/#tomcat lucio (~lucio@dynamic-adsl-78-13-120-70.clienti.tiscali.it)
11:35.25sh_shsry forgot the enviroment
11:35.45sh_shtomcat 7.0.26
11:35.49sh_shjava 1.6.0
11:35.55sh_shopensuse
11:36.36sh_shso the question was
11:36.38sh_shhow can i pass multiple arguments to a cgi script?
11:36.41sh_shall the usual stuff like "script?a=b&c=d" does not seem to work
11:42.46*** join/#tomcat yassine (~yassine@unaffiliated/yassine)
13:09.56*** part/#tomcat schamane (~schamane@barriere.frankfurter-softwarefabrik.de)
13:16.37*** join/#tomcat rbanffy (~rbanffy@187.31.77.7)
13:33.26*** join/#tomcat onats (~onats@unaffiliated/onats)
13:35.22*** join/#tomcat chronosx (~chronosx@49.144.111.68)
13:45.03*** join/#tomcat randrewj (~u1@dyn-128-59-52-18.dyn.columbia.edu)
14:03.57*** join/#tomcat xjiujiu (~quassel@218.77.14.195)
14:05.31*** join/#tomcat anildigital_work (u385@gateway/web/irccloud.com/x-ctohmdofdteyshiq)
14:05.45anildigital_workGuys anything missing in this log4j.properties
14:05.58anildigital_workit writes only one file webfront_debug.log
14:06.00anildigital_workhalp
14:13.16puckoanildigital_work: https://duckduckgo.com/?q=log4j.properties+examples
14:41.05jtheuer_can I monitor how many threads are currently used and what the current queue length is (acceptCount config)
14:59.05*** join/#tomcat herpyderp (~byron@110.171.business-adsl.cybersmart.co.za)
15:06.26*** join/#tomcat BruceZu (~BruceZu@123.114.182.47)
15:13.12*** join/#tomcat geek_cl (~lletelier@190.151.53.228)
16:40.05*** join/#tomcat jasonb (~jbrittain@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
16:52.10*** join/#tomcat anildigital (~anildigit@unaffiliated/anildigital)
16:52.27anildigitalGuys.. a question what does this log4j.properties do? https://gist.github.com/5e9d09ca3f5b5503414b
17:19.02*** join/#tomcat mturk (~mturk@redhat/jboss/mturk)
18:47.11*** join/#tomcat hjb (~hjb@unaffiliated/hjb)
18:47.37hjbhowdy. where should be mod_jk issues be discussed? here or in #apache?
18:47.42hjbor even somewhere else?
18:59.07hjbin the meantime, #apache guys told me that mod_jk issues better fit in here
18:59.28hjbhere's the problem: got apache22 with mod_jk connecting to tomcat6
18:59.53hjbis real basic stuff, i guess, so there must be some piece i'm missing:
19:00.40hjbwhen the backend (tomcat) doesn't react (like i.e. JackRabbit is indexing a workspace and someone tries to access it)
19:01.21hjbi'm running out of free workers until apache completely stops accepting and responding to connections
19:02.15hjbwhich approach do someone normally use to prevent that from happening?
19:11.31*** join/#tomcat dbgster (~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com)
19:20.22karstensragedecouple jackrabbit from tomcat ?
19:25.53hjbkarstensrage: how that? it's running *inside* tomcat
19:26.14hjbbtw. that was just an example and has happened with other applications running in tomcat
19:36.26karstensragedecouple things that hang up tomcat to another tomcat?
19:36.44karstensragedude if you peg your cpu and threads, what do you expect?
19:39.19hjbkarstensrage: i don't get it - even if there's only one app running in that tomcat, hanging requests to it would still eat up my apache workers, or not?
19:40.34hjbcan i dedicate yjust a *limited* number of apache workers to one ajp backend?
19:40.52karstensrageim saying move jackrabbit to another machine even
19:40.53hjbthat would enable decoupling the way you suggest
19:41.12hjbactually it is on another machine
19:41.34karstensrageanother machine than the tomcat that is servicing your ajp
19:41.45hjbmachine A: apache; machine B: tomcat with some app accessing jackrabbit; machine C: jackrabbit reindexing and not responding
19:42.00karstensrageoh
19:42.21karstensrageand A machine is sending N requests to B that are all hanging
19:42.29hjbright
19:42.36karstensragesince they are ALL asking for some jackrabbit resource
19:42.40hjbbecause c is busy and not reacting
19:42.47karstensrageright
19:42.48hjbexactly ;)
19:43.15karstensrageok what would you like to happen?
19:43.35karstensragelike/expect?
19:43.48hjbdefinitely: don't care about the request (can't be answered as required resource not answering)
19:44.11hjbprobably get rid of them so that other requests that can be served aren't stopped because no workers in apache are left
19:44.44karstensrageput a lb in front and if no response in 5 seconds, 503?
19:44.58karstensrageor 504?
19:45.58hjbusing reply_timeout?
19:46.22karstensragesure w/e i know haproxy does this
19:46.27karstensragenot sure exactly how to configure it
19:46.29hjbthat's a problem because of other long running, but valid requests :/
19:47.00karstensragethis isnt technically a tomcat issue really it more an architecture issue
19:48.11karstensragei think the lb should be able to gate paths so maybe for the jr paths you 504 but the other valid ones you have a much longer timeout?
19:49.05hjbhmm, that should be able to be built even with plain mod_jk + apache through the use of JK_REPLY_TIMEOUT env var
19:49.21hjbbut needs *a lot of* tuning
19:50.32hjbi though about a more denamic approach -> something like counting the number of busy workers and killing the longenst running connection without reply to the backend
19:50.48hjbperhaps weigthed by the backend vhost or worker-group
19:51.01karstensragehow often does jr peg things?
19:51.04hjbthat would recognize those kind of stucked request onto a specifc resource
19:51.31hjbkarstensrage: that jr thing was just an example that i can easily reproduce
19:51.44hjbkarstensrage: so, as often as i want it to ;)
19:52.03hjbbut other backend application do that from time to time, like one a week or so, for several minutes
19:54.26karstensragehmm
19:59.43*** join/#tomcat anildigital (~anildigit@unaffiliated/anildigital)
19:59.46hjbi think what i'm searching for is some quota machanism that comes to effect in overload situation and disabled/interrupt the causing backend connetion(vhost/worker group
19:59.59hjbbut i'm not if something like that exists already
20:00.06karstensrageme neither
20:00.12karstensragebut its an interesting situation
20:00.16hjbor even if that makes sense or if there are other approaces
20:00.47karstensragelike only let jr reindex during explicit maintenance modes, but then you valid long running thing wouldnt work either
20:01.47hjbkarstensrage: the jr problem *can* be addressed by implementing a "disable" knob in the requesting application (that's what we're actually implementing right now)
20:02.24hjbbut i'm searching for a more general approach that works regardless of stupid decision in application development ;)
20:03.00hjbsomething that make the infrastructure prone to errournes desing in applications
20:03.53hjband prevents the whole system beeing drawn down by *one* misbehaving application runnning on some backend tomcat
20:05.09hjbi was sure something like that must exist, and i just didn't know about it
20:05.38hjbbut i'm not that sure anymore after readig through a lot of stuff
20:13.52hjbkarstensrage: sorry, didn't want to overload you with text input ;)
20:14.19hjbkind of good abstract example of what's happening on our apache
20:56.51*** part/#tomcat randrewj (~u1@dyn-128-59-52-18.dyn.columbia.edu)
21:08.26*** join/#tomcat dsfsd (~dsfsd@31.185.162.118)
21:08.28dsfsdHi
21:08.46dsfsdAfter an any build of Tomcat 7 where can I find the startup.sh script?
21:09.12dsfsdI would have thought it would be in output/build/bin
21:09.14dsfsdbut it isn't
21:13.38*** join/#tomcat macrover (~macrover@ip70-180-159-214.lv.lv.cox.net)
21:14.16dsfsdI'm running Fedora 16
21:14.29dsfsdand used ant for the build
21:18.39jasonbdsfsd: Well, mine has it in output/build/bin ..  Did your build succeed all the way?  And, which version of Tomcat 7 are you building?
21:19.56dsfsdlatest from SVN
21:20.02dsfsdno errors reported from the bulid
21:20.04dsfsd*build
21:21.46jasonbOkay.  Welp, maybe the latest source has a problem.  There are lots of files in bin/ when it finishes, at least in mine.  So, yours may not be usable.  If you want, put your build.properties files up on a paste server and I can have a look.
21:25.03dsfsdjasonb, http://pastebin.com/5DfM7AUn
21:25.08dsfsdthere are lots of files in bin
21:25.22dsfsdbut startup.sh, shutdown.sh and catalina.sh are not there
21:25.29dsfsdI get them when I installed from the binary
21:25.32dsfsdjust not from sauce
21:25.55dsfsdI had the same problem when building from the 6.x line too
21:30.39jasonbdsfsd: Your build.properties is basically stock, so I don't think the problem's in there.
21:31.08jasonbIt should build fine on Fedora 16, with whatever stock ant and stock Java they have.
21:31.17dsfsdjasonb, i Only made one change to the build file as you can see
21:31.29dsfsdbasically
21:31.33dsfsdI cd to the trunk dir
21:31.36dsfsdthen run any
21:31.42dsfsdbuild take 24 seconds to complete
21:31.51dsfsdand that's tit!
21:31.53dsfsd**it!
21:32.02dsfsdno startup.sh in out/build/bin
21:32.10dsfsd*output
21:32.17jasonbAnd what commands are you using to build it?
21:32.56dsfsdjust ant
21:32.59dsfsdnothing more
21:33.18jasonbWhat I recommend: ant download-compile download-dist
21:33.28dsfsdwhat will that do?
21:33.31jasonbthen run: ant
21:34.21dsfsdthat failed
21:34.31jasonbIt's been long enough now that I don't remember what all that does.  Let me try it..
21:34.59dsfsdCan i RM the output directory?
21:35.23jasonbSure.
21:35.28dsfsdk
21:35.28jasonbYou can always rebuild that.
21:36.18jasonbHmm, mine doesn't fail.
21:36.37dsfsddeleted output/
21:36.39jasonbMine built Tomcat 7.0.27 in 11 seconds.  :)
21:36.42dsfsdbuilding again
21:37.19dsfsdjasonb, http://pastebin.com/E5EZG4xj
21:37.37dsfsdthat's the contents of output/build/bin after build success
21:38.02jasonbwow.  that's messed up.
21:38.52jasonbMine looks nothing like that.
21:48.44*** join/#tomcat johnmilton (~bparncutt@su-nat.int.smq.datapipe.net)
21:50.16dsfsdjasonb, fixed
21:50.23dsfsdI think my SVN checkout was corrupt
21:50.24dsfsdrare
21:54.24jasonbahh
21:54.45jasonbYeah, that shouldn't happen often.
22:09.45dsfsdjasonb,
22:09.57dsfsddoes tomcat provide eclipse metadata files
22:10.07dsfsdso I can import this straight into eclipse?
22:10.23dsfsdI thought they were provided straight out of SVN?
22:10.28dsfsdin /trunk ?
22:13.48*** part/#tomcat lucio (~lucio@dynamic-adsl-78-13-120-70.clienti.tiscali.it)
22:17.36jasonbdsfsd: Hmm, there's a page about this.. they're in one of the subdirectories in the source tree.
22:19.06jasonbI think the deal is: you use the maven files to generate eclipse project files, but honestly I haven't tried that in a while, so I don't know what the recent way to do it is.
22:20.13jasonbhttp://tomcat.apache.org/tomcat-6.0-doc/building.html#Building_with_Eclipse
22:20.33dsfsdthanks
22:42.02dsfsdI've got 119 errors being reported by eclipse in Tomcat7
22:42.29dsfsdStared off with over 1000 but I added JUnit and ANT to the classpath of the project and now I'm left with 119 errors
22:42.43dsfsdthnigs such as : DescriptionResourcePathLocationType
22:42.43dsfsdAntClassLoader cannot be resolved to a typeJspC.java/Tomcat7/java/org/apache/jasperline 1460Java Problem
22:42.52dsfsderm.. ignore that one
22:42.54dsfsdI meant
22:43.02dsfsdthings such as:  ExtensibilityElement cannot be resolved to a type
22:43.09dsfsdAny idea what's causing that?
22:45.15dsfsdI must be missing some dependencies
22:45.19dsfsdI don't know which ones though
22:45.40dsfsdI'll probably write a beginners guide after all of this
22:52.19dsfsdjavax.xml.rpc cannot be resolved to a type
22:52.22dsfsdany ideas?
22:52.27dsfsdwhat jar am I missing?
23:06.15jasonbYeah, I'm not sure.  I have not been trying to get it building in eclipse recently.  I do think it's worth writing up a beginner's guide showing how to make that work, though.
23:09.44dsfsdI just dropped jee.jar into the build path
23:09.47dsfsdthat fixed a lot
23:09.55dsfsdthere are some errors that are not dependencies
23:10.06dsfsdlike classes defined twice in the webapps samples
23:10.15dsfsdI don't get why Tomcat is this messy

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