irclog2html for #tomcat on 20061212

00:31.41*** join/#tomcat map7 (n=map7@teksup41.lnk.telstra.net)
01:30.50*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
01:31.11jasonblo
01:31.53pfnallo
01:31.59pfnso, I've installed 1.6final
01:32.08pfnit exposed some bugs in the ria, but I've fixed 'em
01:34.34pfnhad a fun memory leak problem that I fixed the other day, too
01:34.34pfnheh
01:37.39jasonbNeat!
01:38.05jasonbIsn't it interesting that PHP is now part of Java?
01:38.56pfnI haven't looked at that aspect at all
01:39.15pfnI never really understood that the gc can't free memory in long running methods
01:39.16jasonbOh, and derby is now part of Java..
01:39.51pfne.g.,  I had a run() { for (Image image : images) { for (Size size : sizes) { scale/upload(image{size}) } }
01:40.00pfnand that resulted in an ugly memory leak... heh
01:40.07pfnoh is it
01:40.11jasonbHmm, well, the gc can free memory if you de-reference stuff as you go.
01:40.13pfnhmm, I should look at what's new to didle with
01:40.19pfnno, the gc can't free memory in a method
01:40.27pfnif you're in a tight loop that keeps allocating memory, you will run out
01:40.35jasonbhuh?
01:41.03pfnlet me see if I can figure out how to reproduce it
01:41.46jasonbIn your method, "images" is a list of images that probably does not get de-referenced anywhere in the run() method.
01:42.05pfnit does get deref'd
01:42.11pfnhold on and let me see if I can duplicate it
01:42.15jasonb:)
01:45.44pfnbut simply refactoring my long ass method made it not leak memory
01:47.14pfnhttp://svntrac.hanhuy.com/repo/changeset?new=hanhuy%2Ftrunk%2Fcms%2Fsrc%2Fcom%2Fhanhuy%2Fria%2Fui%2Fcontroller%2FUploadPreviewController.java%40324&old=hanhuy%2Ftrunk%2Fcms%2Fsrc%2Fcom%2Fhanhuy%2Fria%2Fui%2Fcontroller%2FUploadPreviewController.java%40322
01:48.33jasonbStill looks like one long ass method to me..
01:48.48*** join/#tomcat Alconquian (n=w@adsl-71-158-131-158.dsl.fyvlar.sbcglobal.net)
01:48.55jasonbOh.. it's because you don't have a blank line between methods!!
01:49.59pfnit is still long
01:50.03pfnI haven't fully refactored it
01:50.22pfndon't look forward to it either
01:50.41jasonbI guess the worst thing is that there are no in-line comments saying what it's doing.
01:51.00jasonbLong isn't real bad.. except when there aren't any comments about what's going on.
01:53.28jasonbIt's good that you found a way around the memory leak though.
01:55.03*** join/#tomcat wsmoak (n=wsmoak@ip68-96-53-53.ph.ph.cox.net)
01:59.40pfnstrange, I wonder why I can't reproduce it in a contrived test
02:00.51jasonb:)
02:01.08jasonbIt must have been caused by something other than what you thought it was caused by.
02:01.39pfncan't be
02:01.48pfnbecause I tracked it pretty carefully
02:02.00pfnand heapanalysis pointed out the culprin
02:02.03pfnculprit
02:02.13pfnhttp://www.hanhuy.com/~pfnguyen/heapanalyzer_screenshot.png
02:02.36pfnand the only possible way the ImageInfo object could have had a reference to the memory is if the gc didn't "work"
02:02.58jasonbWhat heap analyzer is that?
02:03.09pfnbecause as you see in the nested Size loop, the reference is set to null at the end (info.setOriginal/info.setScaledXXX(..., null))
02:03.13pfnibm heapanalyzer
02:03.17pfnonly works with IBM's jvm  :(
02:03.30jasonbYou should really use the Netbeans 5.5 profiler.. it rocks!
02:04.22jasonbIt is always possible to generate large garbage objects faster than the JVM can gc them.
02:05.09jasonbIf you make an object that allocates 5 megs of heap ram, and you have a tight fast loop that creates new instances of it and de-references them just as fast, that loop will probably run the JVM out of heap ram.
02:05.18pfnjasonb that's not possible
02:05.32pfnbecause the OOME behavior is that, when you hit max heap size, the jvm is forced to gc
02:05.44pfnif after gc there is not enoguh memory available, then throw OOME
02:06.16jasonbYes, and that particular gc will work, but whether it pauses the tight loop while it does that depends on which gc algorithm you've got selected.
02:06.37pfnwell, this loop isn't really "tight"
02:07.42jasonbWith the default gc, the loop gets paused while the gc happens, so you end up not running out of memory.
02:13.12*** join/#tomcat remnant (n=lenhan@cpe-72-130-178-223.san.res.rr.com)
02:56.15*** join/#tomcat dev34 (n=nana@c-71-62-177-226.hsd1.va.comcast.net)
03:01.02*** join/#tomcat dburger (n=dburger@72.235.74.140)
03:01.26dburgerHow to work with tomcat and p3p policy files?
03:36.53*** part/#tomcat dev34 (n=nana@c-71-62-177-226.hsd1.va.comcast.net)
03:40.07*** join/#tomcat dkf3s (n=hare@58.69.158.114)
03:41.22dkf3shi all, im installing tomcat from source, how do install deployer and embed after extraction?
04:06.07dkf3sis it normal for a standalone installation of tomcat not published over public ip?
04:06.48dkf3si can only browse port 8080 over the network bt not within public
04:20.45pfnthat has nothing to do with tomcat
04:20.52pfnand everything to do with your firewall/router configuration
04:26.14dkf3spfn: i got 3 pc with public ip one of them is tomcat, the other 2 pc is running IIS, i can view my IIS but not tomcat
04:26.44dkf3sport 8080 is not block either
04:28.11dkf3si already inserted the <connector address="a.b.c.d", but nothing has changed
04:33.49pfnthat's your firewall/router
04:33.50pfnnot tomcat
04:38.28*** join/#tomcat Raboo_ (i=rabi@nikson.dataphone.se)
04:52.15*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-60-193.w82-121.abo.wanadoo.fr)
04:53.14*** part/#tomcat dburger (n=dburger@72.235.74.140)
05:02.13*** join/#tomcat twilight (n=ask@177.80-203-90.nextgentel.com)
07:24.39*** join/#tomcat NorthDragon (n=NorthDra@193.238.48.200)
07:48.11J-Proso nobody knows anything about my exception...
08:43.46*** join/#tomcat evosh (n=jixjax@user-11fat0s.dsl.mindspring.com)
08:50.49J-Projasonb, are you here, man?
08:56.26*** join/#tomcat yango (n=yan@unaffiliated/yango)
09:02.47*** join/#tomcat kasbah (n=kasbah@62.206.116.171)
09:23.41*** join/#tomcat twilight\ (n=ask@177.80-203-90.nextgentel.com)
10:09.51*** join/#tomcat M4g3 (n=M4g3@spellfire.dcs.qmul.ac.uk)
10:11.41M4g3is there ay way that catalina.policy file can be modularised
10:12.00M4g3i.e in the simmilar fashion to httpd.conf and include statements?
11:38.10*** join/#tomcat st0ne (n=michael@59.93.32.146)
11:38.18st0nehi
11:38.36st0neHi all there.
11:38.44st0neI am a newbie in tomcat
11:39.14st0neIf someone could help me in digging the problem I am having I would be thankful.
11:39.42st0neI am running a cpanel based server and using the script provided I have installed tomcat on the server.
11:40.11st0neDue to some problems with the registrar the domain was not working properly for some time
11:40.29st0nenow the registrar issue has been fixed but the domain is showing the following error.
11:40.36st0nefor .jsp only,
11:41.15st0nethe error is "503 service temporarily unavailable"
11:41.30st0neThanks for your help in advance.
12:06.26*** join/#tomcat RadoS (n=cheater@sun36.math.uni-hamburg.de)
12:08.51RadoSMoin, when I try to install tc-5.5.20, it wants to retrieve some eclipse plug-ins, but it points to some old version that isn't available anymore. What do I have to change to use the recent version? I adjusted build.properties, but this doesn't seem to be the only place that needs adjustments. Where else should I look?
13:10.21*** join/#tomcat xs4rg7tn (n=mauricio@201.245.134.2)
13:10.50xs4rg7tnhi guys. Im from the University Nacional from colombia and we are development a project about TeleMedicina and i need to know how can i load a dll from a jar a signed jar any code sample any suggestion? please help me is very importan to me
13:13.38ajeload a dll from a signed jar?!
13:13.45ajea windows dll?
13:13.56xs4rg7tnmy own dll
13:14.10ajedll as in win32 dll?
13:14.52xs4rg7tni create a dll with an include #include <jni.h> and ....
13:17.49*** join/#tomcat JokerPro (n=Miranda@195.22.229.100)
13:18.31xs4rg7ntaje are you here
13:20.20ajexs4rg7nt: eeh, yes.
13:20.35ajexs4rg7nt: i've never heard of anoyone loading a win32 specific dll from java.
13:20.48ajeit's not possible, afaik.
13:21.23ajejava = platform independent. win32 dll = proprietary technology. but you probably already know that. ;)
13:21.39xs4rg7ntis not a simple win32 dll is a modify dll that java can load
13:21.54xs4rg7ntim sure that java can load my dll becouse from commmand line it works
13:22.13xs4rg7ntbut if i try to upload to the jar it say java.pathclass dont found dll
13:22.22xs4rg7ntthats my only problem
13:31.44st0neI was able to fix the tomcat issue by restarting. the mod_jk module which was listeining to 8009 internally was eceedng maximum number of connections. By rebooting the server I think all those connections got flushed out.
13:32.15st0necurrently it is not detecting any jsp files. Evene if index.jsp file is there in the location it is saying that the file not found.
13:32.57st0necan that be a mod_jk mount issue? can any one please help on this?
14:03.03*** join/#tomcat cobalt-60 (n=cobaltsi@201009144116.user.veloxzone.com.br)
14:34.00*** join/#tomcat prgrmr (n=prgrmr@bzq-82-81-147-187.red.bezeqint.net)
14:44.14*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
14:57.33M4g3is ther any place i can find a decent information about setting up tomcat's security manager?
15:04.44*** join/#tomcat harpoon (i=stueber@ultra20.rbg.informatik.tu-darmstadt.de)
15:14.57*** join/#tomcat odin (n=dlm@host86-128-80-57.range86-128.btcentralplus.com)
15:49.50M4g3im trying to run the default configuration provided but it fails miserably
16:24.51*** join/#tomcat Ontolog (n=Ontolog@4.19.239.2)
16:25.49*** join/#tomcat cib_ (n=c1b@dslb-082-083-117-027.pools.arcor-ip.net)
16:54.06*** join/#tomcat seevash (n=jixjax@user-11fat0s.dsl.mindspring.com)
17:25.29*** join/#tomcat remnant (n=lenhan@mail.catholic.com)
17:30.30*** join/#tomcat remnant (n=lenhan@mail.catholic.com)
17:57.16*** part/#tomcat chrismon (i=chrismon@unaffiliated/chrismon)
18:05.50*** join/#tomcat anirban (n=anirban@59.93.240.99)
18:05.56anirbanHi
18:06.07anirbanis any one doing portal development here
18:17.28*** join/#tomcat f0rget_ (n=f0rget@12.104.6.129)
18:17.44*** part/#tomcat f0rget_ (n=f0rget@12.104.6.129)
18:27.00*** join/#tomcat twilight\ (n=ask@177.80-203-90.nextgentel.com)
18:27.49*** join/#tomcat odin (n=dlm@host86-128-80-57.range86-128.btcentralplus.com)
18:28.35*** join/#tomcat odin_ (n=dlm@host86-128-80-57.range86-128.btcentralplus.com)
18:37.33*** join/#tomcat twi\ (n=ask@177.80-203-90.nextgentel.com)
18:45.23*** join/#tomcat prgrmr (n=prgrmr@bzq-88-154-38-6.red.bezeqint.net)
18:47.36*** join/#tomcat yassinework (n=yel@xdsl-84-44-154-240.netcologne.de)
18:47.57*** part/#tomcat anirban (n=anirban@59.93.240.99)
18:53.34*** join/#tomcat kasbah (n=kasbah@port-212-202-42-65.dynamic.qsc.de)
19:07.39*** join/#tomcat wglass (n=wglass@adsl-69-107-66-89.dsl.pltn13.pacbell.net)
19:32.55*** join/#tomcat ves (n=gavin@cpc2-john1-0-0-cust80.renf.cable.ntl.com)
19:42.15vesHi there, I was trying to knock up a basic web interface around an app I had written without having to change any of the original apps code. However, it uses things like new File("asjdajsdkasd") which tomcat seems only able to locate in '/' (upmost root of the filesystem) - is there anyway to change this? Like the working directory?
19:43.13vesI only found a few unanswered mailing lists about this, I wondered if I was going about solving this problem the 'right way' :/
19:50.40*** join/#tomcat zambaroo (n=zamba@209.216.245.214)
19:50.44zambaroohi all
19:51.05zambaroohas anyone run tomcat on pvfs?
19:56.58*** part/#tomcat RadoS (n=cheater@sun36.math.uni-hamburg.de)
20:13.08*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-39-156.w83-114.abo.wanadoo.fr)
20:13.47*** join/#tomcat prgrmr_ (n=prgrmr@bzq-88-155-6-3.red.bezeqint.net)
20:17.23*** join/#tomcat NorthDragon (n=NorthDra@193.238.48.202)
20:27.12LongBeachhey, does anyone have some knowledge regarding XML files parsing ?
20:29.00kasbahLongBeach: i used rome for parsing feeds, that's all
20:36.04*** join/#tomcat Jara[zZ] (n=rimaraj@62.123.204.106)
20:53.18*** join/#tomcat yassine (n=yassine@xdsl-84-44-154-240.netcologne.de)
20:59.52pfnves generally you don't open a File directly
21:00.11pfnves you use getServletContext().getRealPath() or something similar
21:00.17pfnand you use that path to open a file
21:00.37vespfn: Ah, right. The problem is that this code is also used standalone also :/
21:00.49pfnso you provide a wrapper to you code
21:01.55vesyeah, I guess
21:03.08vesI wonder what'd be the best way to do this, it's loads of code and I'm really reluctant now to modify it :)
21:04.15pfnthat's why you provide a wrapper
21:06.04vesright
21:06.14vesI'll read up on that then, cheers for the response I appreciate it
21:40.26*** join/#tomcat [Piratez] (i=piratez@CPE000fb524ba63-CM00111ae6166e.cpe.net.cable.rogers.com)
22:05.39*** join/#tomcat TaSo (n=jflk@ip-160-79-51-140.autorev.intellispace.net)
22:13.58*** join/#tomcat number3 (i=dsfgsdfg@71.194.110.61)
22:14.21number3whats the default user name and password for tomcat 5.5
22:19.34pfnit's in tomcat-users.xml or whatever
22:23.44[Piratez]what he said
22:27.46*** join/#tomcat madbrain_ (n=chatzill@216.35.131.180)
22:35.38number3where do i put the files and how do i decide whats the url for them
22:37.05*** join/#tomcat pucko (n=andreas@81-234-246-21-o933.tbon.telia.com) [NETSPLIT VICTIM]
22:37.07number3pls help i have a project due today
22:37.58*** join/#tomcat teite (i=shu@sun-shu.ision.net) [NETSPLIT VICTIM]
22:38.02*** join/#tomcat pfn (n=pfnguyen@netblock-66-245-252-239.dslextreme.com)
22:38.02*** join/#tomcat lyken (n=dc@air889.startdedicated.com) [NETSPLIT VICTIM]
22:38.16yassinelyken,  you evil where are you hiding these days ?
22:39.48number3where do i put the file to be in the server
22:40.29yassinenumber3, are these static files ?
22:40.56*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-39-156.w83-114.abo.wanadoo.fr)
22:41.08number3im putiing a asp file and an mdb file, i need to put the url for them
22:41.23number3but i dont know where to put them nor what the url will be
22:42.13number3apache-tomcat-5.5.17_base is this the right folder or apache-tomcat-5.5.17
22:42.38yassinenumber3, asp file do you mean JSP ?
22:43.47number3ok, i have a j2me application that sends a request to an aspx file which search for it in an access database and return the info
22:44.42number3i have the application ready but i dont know where to put the aspx file and the mdb file and the url that will be supplied to the j2me application
22:46.42*** join/#tomcat bugfixer (n=bugfixer@42gis175.gulftel.com) [NETSPLIT VICTIM]
22:46.42*** join/#tomcat caverlg (n=larry@arksoft.org) [NETSPLIT VICTIM]
22:48.10number3yassine r u there?
22:48.15yassineyes
22:48.19yassineone sec
22:48.23number3ok
22:48.44yassineafaik you can not run aspx from tomcat
22:49.21number3damn
22:49.54yassinetomcat does not runs ASP but JSP
22:50.51yassineActive Server Pages is from mircosoft and Java Server Pages are from sun microsystems
22:51.14number3so what runs asp?
22:52.01yassinei dunno maybe iis server i never used it
22:52.17yassinetry ##windows
22:52.31pfnmaybe mono?
22:52.35zambaroook guys, tomcat on pvfs anyone?
22:52.37pfnif you're looking for linux
22:52.39pfnwhat's pvfs
22:52.49zambarooparrallel filesystem
22:53.05zambarooi have gfs configured but it's a bitch to get going and all.
22:53.27number3ythx man yassine
22:53.37yassineyour welcome
22:54.17yassinepfn, how is everything there ?
22:54.35pfngoin' all right, you?
22:54.45yassineyeah waiting for the baby :)
22:54.55pfnhow much longer?
22:55.08zambarootill the nine months are out, i would imagine
22:55.10yassinelike 14 days
22:55.18zambaroounless yassine is talking about an elephant
22:56.52yassinepfn, do you happen to use mod_rewrite ?
22:56.55pfnyeah
22:57.44yassinei have an application on the top of cocoon  so my url looks like : http://.../cocoon/daisy/...
22:58.19yassineand i trying to map the get /$ with /cocoon/daisy/$
22:58.49yassineso that the user will only request the http://www.host.com
22:59.22yassineand gets the result of  http://www.host.com/cocoon/daisy/
23:00.21yassinethe problem here is that /cocoon/daisy/ are mounted via JK thats why i can not aliases / to /cocoon/daisy
23:00.55pfnRewriteRule ^/(.*)$ /cocoon/daisy/$1 [pt]
23:01.34yassinebut this will allow the user to see http://www.host.com/cocoon/daisy/... right ?
23:01.41pfnyes
23:01.50yassinethats what im trying to avoide
23:01.54pfnwhy?
23:02.09pfnyou want the user to request http://www.host.com/foo to get to /cocoon/daisy/foo
23:02.16pfnthat's precisely what the rule above does
23:02.25yassinewell the /cocoon/daisy/ is only a base url
23:02.27pfnit's up to cocoon to return urls that do not contain /cocoon/daisy in them
23:02.52*** join/#tomcat bugfixer (n=bugfixer@42gis175.gulftel.com) [NETSPLIT VICTIM]
23:02.53*** join/#tomcat caverlg (n=larry@arksoft.org) [NETSPLIT VICTIM]
23:03.25yassineand the main vhost/ sites will be than under them actually in the form /cocoon/daisy/site1/... cocoon/daisy/site2/... cocoon/daisy/site3/... so i want to map each siteX to a its own vhost
23:03.42pfneh?
23:03.50pfnwhat kinda crap are you doing  :p
23:05.08yassineim inspired by zambaroo :)
23:06.12zambarooteehee :)
23:18.01yassineseevash!
23:40.47*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-22-47.w83-114.abo.wanadoo.fr)

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.