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.11 | jasonb | lo |
01:31.53 | pfn | allo |
01:31.59 | pfn | so, I've installed 1.6final |
01:32.08 | pfn | it exposed some bugs in the ria, but I've fixed 'em |
01:34.34 | pfn | had a fun memory leak problem that I fixed the other day, too |
01:34.34 | pfn | heh |
01:37.39 | jasonb | Neat! |
01:38.05 | jasonb | Isn't it interesting that PHP is now part of Java? |
01:38.56 | pfn | I haven't looked at that aspect at all |
01:39.15 | pfn | I never really understood that the gc can't free memory in long running methods |
01:39.16 | jasonb | Oh, and derby is now part of Java.. |
01:39.51 | pfn | e.g., I had a run() { for (Image image : images) { for (Size size : sizes) { scale/upload(image{size}) } } |
01:40.00 | pfn | and that resulted in an ugly memory leak... heh |
01:40.07 | pfn | oh is it |
01:40.11 | jasonb | Hmm, well, the gc can free memory if you de-reference stuff as you go. |
01:40.13 | pfn | hmm, I should look at what's new to didle with |
01:40.19 | pfn | no, the gc can't free memory in a method |
01:40.27 | pfn | if you're in a tight loop that keeps allocating memory, you will run out |
01:40.35 | jasonb | huh? |
01:41.03 | pfn | let me see if I can figure out how to reproduce it |
01:41.46 | jasonb | In your method, "images" is a list of images that probably does not get de-referenced anywhere in the run() method. |
01:42.05 | pfn | it does get deref'd |
01:42.11 | pfn | hold on and let me see if I can duplicate it |
01:42.15 | jasonb | :) |
01:45.44 | pfn | but simply refactoring my long ass method made it not leak memory |
01:47.14 | pfn | http://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.33 | jasonb | Still 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.55 | jasonb | Oh.. it's because you don't have a blank line between methods!! |
01:49.59 | pfn | it is still long |
01:50.03 | pfn | I haven't fully refactored it |
01:50.22 | pfn | don't look forward to it either |
01:50.41 | jasonb | I guess the worst thing is that there are no in-line comments saying what it's doing. |
01:51.00 | jasonb | Long isn't real bad.. except when there aren't any comments about what's going on. |
01:53.28 | jasonb | It'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.40 | pfn | strange, I wonder why I can't reproduce it in a contrived test |
02:00.51 | jasonb | :) |
02:01.08 | jasonb | It must have been caused by something other than what you thought it was caused by. |
02:01.39 | pfn | can't be |
02:01.48 | pfn | because I tracked it pretty carefully |
02:02.00 | pfn | and heapanalysis pointed out the culprin |
02:02.03 | pfn | culprit |
02:02.13 | pfn | http://www.hanhuy.com/~pfnguyen/heapanalyzer_screenshot.png |
02:02.36 | pfn | and the only possible way the ImageInfo object could have had a reference to the memory is if the gc didn't "work" |
02:02.58 | jasonb | What heap analyzer is that? |
02:03.09 | pfn | because as you see in the nested Size loop, the reference is set to null at the end (info.setOriginal/info.setScaledXXX(..., null)) |
02:03.13 | pfn | ibm heapanalyzer |
02:03.17 | pfn | only works with IBM's jvm :( |
02:03.30 | jasonb | You should really use the Netbeans 5.5 profiler.. it rocks! |
02:04.22 | jasonb | It is always possible to generate large garbage objects faster than the JVM can gc them. |
02:05.09 | jasonb | If 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.18 | pfn | jasonb that's not possible |
02:05.32 | pfn | because the OOME behavior is that, when you hit max heap size, the jvm is forced to gc |
02:05.44 | pfn | if after gc there is not enoguh memory available, then throw OOME |
02:06.16 | jasonb | Yes, 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.37 | pfn | well, this loop isn't really "tight" |
02:07.42 | jasonb | With 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.26 | dburger | How 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.22 | dkf3s | hi all, im installing tomcat from source, how do install deployer and embed after extraction? |
04:06.07 | dkf3s | is it normal for a standalone installation of tomcat not published over public ip? |
04:06.48 | dkf3s | i can only browse port 8080 over the network bt not within public |
04:20.45 | pfn | that has nothing to do with tomcat |
04:20.52 | pfn | and everything to do with your firewall/router configuration |
04:26.14 | dkf3s | pfn: 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.44 | dkf3s | port 8080 is not block either |
04:28.11 | dkf3s | i already inserted the <connector address="a.b.c.d", but nothing has changed |
04:33.49 | pfn | that's your firewall/router |
04:33.50 | pfn | not 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.11 | J-Pro | so nobody knows anything about my exception... |
08:43.46 | *** join/#tomcat evosh (n=jixjax@user-11fat0s.dsl.mindspring.com) |
08:50.49 | J-Pro | jasonb, 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.41 | M4g3 | is there ay way that catalina.policy file can be modularised |
10:12.00 | M4g3 | i.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.18 | st0ne | hi |
11:38.36 | st0ne | Hi all there. |
11:38.44 | st0ne | I am a newbie in tomcat |
11:39.14 | st0ne | If someone could help me in digging the problem I am having I would be thankful. |
11:39.42 | st0ne | I am running a cpanel based server and using the script provided I have installed tomcat on the server. |
11:40.11 | st0ne | Due to some problems with the registrar the domain was not working properly for some time |
11:40.29 | st0ne | now the registrar issue has been fixed but the domain is showing the following error. |
11:40.36 | st0ne | for .jsp only, |
11:41.15 | st0ne | the error is "503 service temporarily unavailable" |
11:41.30 | st0ne | Thanks for your help in advance. |
12:06.26 | *** join/#tomcat RadoS (n=cheater@sun36.math.uni-hamburg.de) |
12:08.51 | RadoS | Moin, 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.50 | xs4rg7tn | hi 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.38 | aje | load a dll from a signed jar?! |
13:13.45 | aje | a windows dll? |
13:13.56 | xs4rg7tn | my own dll |
13:14.10 | aje | dll as in win32 dll? |
13:14.52 | xs4rg7tn | i create a dll with an include #include <jni.h> and .... |
13:17.49 | *** join/#tomcat JokerPro (n=Miranda@195.22.229.100) |
13:18.31 | xs4rg7nt | aje are you here |
13:20.20 | aje | xs4rg7nt: eeh, yes. |
13:20.35 | aje | xs4rg7nt: i've never heard of anoyone loading a win32 specific dll from java. |
13:20.48 | aje | it's not possible, afaik. |
13:21.23 | aje | java = platform independent. win32 dll = proprietary technology. but you probably already know that. ;) |
13:21.39 | xs4rg7nt | is not a simple win32 dll is a modify dll that java can load |
13:21.54 | xs4rg7nt | im sure that java can load my dll becouse from commmand line it works |
13:22.13 | xs4rg7nt | but if i try to upload to the jar it say java.pathclass dont found dll |
13:22.22 | xs4rg7nt | thats my only problem |
13:31.44 | st0ne | I 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.15 | st0ne | currently 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.57 | st0ne | can 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.33 | M4g3 | is 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.50 | M4g3 | im 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.56 | anirban | Hi |
18:06.07 | anirban | is 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.15 | ves | Hi 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.13 | ves | I 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.44 | zambaroo | hi all |
19:51.05 | zambaroo | has 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.12 | LongBeach | hey, does anyone have some knowledge regarding XML files parsing ? |
20:29.00 | kasbah | LongBeach: 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.52 | pfn | ves generally you don't open a File directly |
21:00.11 | pfn | ves you use getServletContext().getRealPath() or something similar |
21:00.17 | pfn | and you use that path to open a file |
21:00.37 | ves | pfn: Ah, right. The problem is that this code is also used standalone also :/ |
21:00.49 | pfn | so you provide a wrapper to you code |
21:01.55 | ves | yeah, I guess |
21:03.08 | ves | I 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.15 | pfn | that's why you provide a wrapper |
21:06.04 | ves | right |
21:06.14 | ves | I'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.21 | number3 | whats the default user name and password for tomcat 5.5 |
22:19.34 | pfn | it'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.38 | number3 | where 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.07 | number3 | pls 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.16 | yassine | lyken, you evil where are you hiding these days ? |
22:39.48 | number3 | where do i put the file to be in the server |
22:40.29 | yassine | number3, are these static files ? |
22:40.56 | *** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-39-156.w83-114.abo.wanadoo.fr) |
22:41.08 | number3 | im putiing a asp file and an mdb file, i need to put the url for them |
22:41.23 | number3 | but i dont know where to put them nor what the url will be |
22:42.13 | number3 | apache-tomcat-5.5.17_base is this the right folder or apache-tomcat-5.5.17 |
22:42.38 | yassine | number3, asp file do you mean JSP ? |
22:43.47 | number3 | ok, 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.42 | number3 | i 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.10 | number3 | yassine r u there? |
22:48.15 | yassine | yes |
22:48.19 | yassine | one sec |
22:48.23 | number3 | ok |
22:48.44 | yassine | afaik you can not run aspx from tomcat |
22:49.21 | number3 | damn |
22:49.54 | yassine | tomcat does not runs ASP but JSP |
22:50.51 | yassine | Active Server Pages is from mircosoft and Java Server Pages are from sun microsystems |
22:51.14 | number3 | so what runs asp? |
22:52.01 | yassine | i dunno maybe iis server i never used it |
22:52.17 | yassine | try ##windows |
22:52.31 | pfn | maybe mono? |
22:52.35 | zambaroo | ok guys, tomcat on pvfs anyone? |
22:52.37 | pfn | if you're looking for linux |
22:52.39 | pfn | what's pvfs |
22:52.49 | zambaroo | parrallel filesystem |
22:53.05 | zambaroo | i have gfs configured but it's a bitch to get going and all. |
22:53.27 | number3 | ythx man yassine |
22:53.37 | yassine | your welcome |
22:54.17 | yassine | pfn, how is everything there ? |
22:54.35 | pfn | goin' all right, you? |
22:54.45 | yassine | yeah waiting for the baby :) |
22:54.55 | pfn | how much longer? |
22:55.08 | zambaroo | till the nine months are out, i would imagine |
22:55.10 | yassine | like 14 days |
22:55.18 | zambaroo | unless yassine is talking about an elephant |
22:56.52 | yassine | pfn, do you happen to use mod_rewrite ? |
22:56.55 | pfn | yeah |
22:57.44 | yassine | i have an application on the top of cocoon so my url looks like : http://.../cocoon/daisy/... |
22:58.19 | yassine | and i trying to map the get /$ with /cocoon/daisy/$ |
22:58.49 | yassine | so that the user will only request the http://www.host.com |
22:59.22 | yassine | and gets the result of http://www.host.com/cocoon/daisy/ |
23:00.21 | yassine | the problem here is that /cocoon/daisy/ are mounted via JK thats why i can not aliases / to /cocoon/daisy |
23:00.55 | pfn | RewriteRule ^/(.*)$ /cocoon/daisy/$1 [pt] |
23:01.34 | yassine | but this will allow the user to see http://www.host.com/cocoon/daisy/... right ? |
23:01.41 | pfn | yes |
23:01.50 | yassine | thats what im trying to avoide |
23:01.54 | pfn | why? |
23:02.09 | pfn | you want the user to request http://www.host.com/foo to get to /cocoon/daisy/foo |
23:02.16 | pfn | that's precisely what the rule above does |
23:02.25 | yassine | well the /cocoon/daisy/ is only a base url |
23:02.27 | pfn | it'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.25 | yassine | and 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.42 | pfn | eh? |
23:03.50 | pfn | what kinda crap are you doing :p |
23:05.08 | yassine | im inspired by zambaroo :) |
23:06.12 | zambaroo | teehee :) |
23:18.01 | yassine | seevash! |
23:40.47 | *** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-22-47.w83-114.abo.wanadoo.fr) |