Virtual Host and classpath related problem on deployment

2006-05-18 Thread Mladen Adamovic
at the shared classes in the same directory as mysite.com. How I can solve this problem? I tried to add some more Context under my host, but it don't work. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com

Re: Virtual Host problem with classpath

2006-05-19 Thread Mladen Adamovic
/index.jsp works :). thanx x10 -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Directory Structure and Can't Find Resources in Tomcat

2006-05-20 Thread Mladen Adamovic
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Tomcat Web Statistics program for Linux (free, java preffered)

2006-05-21 Thread Mladen Adamovic
Hi! I tried to find good free web statistics program for Tomcat. AKA Log Analyzer. I'm running standalone Tomcat (without Apache). Any recommandation? I would prefer Java solution. I know about AwStats, but so far it don't work properly. Probably I would be able to configure it properly but

Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Mladen Adamovic
I tried to find decent free web statistics program for Tomcat. (AKA Log Analyzer). I'm running standalone Tomcat (without Apache) on Linux. I would prefer Java solution, but perl/c++/python might be ok. I googled for 2 hours but I haven't found any Java solution. Any recommendation? I know

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Mladen Adamovic
Leon Rosenberg wrote: do you want a log analyzer or live load statistics? Hi Leon, Live load statistics might mean also memory and processor usage of the server. I will understand your question as : do you want live or croned program? Since web stat program could be live or cached (using cron

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread Mladen Adamovic
Antonio Petrelli wrote: If they all use the same version of Struts, there is no problem (though I am not sure about it :-) ). But think about the chance to have different versions of Struts in different webapps: it will lead to a complete classloader mess! Now I know why is Tomcat hosting

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Mladen Adamovic
Leon Rosenberg wrote: No, I mean things like number of request for each servlet, total number of time this servlet spent processing, number of errors, avg request duration for last 5m,15m,1h,1d,1week... whatever. In fact I might become interested in those information. Average/max duration of

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Mladen Adamovic
Leon Rosenberg wrote: http://anotheria.net:8180/moskitodemo/ However, enough said. Try it out, tell me what you think :-) I've got connection refused ;) P.S. Moskito is open source. I'm creating a downloadable distribution right now, which will contain the core system, logging add-on for

Re: Can't find ajp13 connector

2006-05-22 Thread Mladen Adamovic
Allen Williams wrote: I can't find anywhere that I can download a jar of this package, but isn't it supposed to be in one of the standard .jar's anyway? What would have lost it? Using CATALINA_BASE: /var/lib/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 It seems that you are using

Re: Can't find ajp13 connector

2006-05-23 Thread Mladen Adamovic
on Linux systems Author : Mladen Adamovic ([EMAIL PROTECTED]) home page: http://home.blic.net/adamm try: po = os.popen('locate .jar', 'r') except IOError: exit(0) arg1= sys.argv[1] print 'Working for : ' + arg1 sys.stderr.close() line = po.readline() while line: # print line,# trailing

Re: how to increment the max memory of Tomcat´s JVM??

2006-05-27 Thread Mladen Adamovic
/catalina.sh or catalina.bat (on Windows) file. Add parametars like -Xms300m -Xmx500m or something. This means that Tomcat will use 300MB of memory when it started and it might take up to 500MB if needed. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com

Re: How to notify user ...

2006-05-29 Thread Mladen Adamovic
. If Tomcat server don't respond it means it is down and other computer send SMS via jSMS or whatever. Sounds easy. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com http://www.online-utility.org

Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64

2006-05-30 Thread Mladen Adamovic
. Is there a distribution of jsvc that will compile and work with this hardware/software configuration? You should try with the latest version. If it doesn't work and you don't get more help from this mailing list, try with jakarta-common-dev mailing list or jsvc-dev if that exists. -- Mladen Adamovic

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Mladen Adamovic
English better and learn how to describe your problems more clearly. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com http://www.online-utility.org - To start a new topic, e

Re: JSPs will not load with virtual domain

2006-06-09 Thread Mladen Adamovic
comments and unnecessary burden here) and I will try to look at it. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com http://www.online-utility.org - To start a new topic, e-mail

Re: JSPs will not load with virtual domain

2006-06-11 Thread Mladen Adamovic
for me. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: Bandwidth statistics in Tomcat

2006-06-13 Thread Mladen Adamovic
]folder=20050104154634840 http://www.turro.org/xp/[EMAIL PROTECTED]@[EMAIL PROTECTED]folder=20050104154634840 I asked for something better before on this list, but no recomendation :). -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http

Re: serving static html with Tomcat

2006-10-24 Thread Mladen Adamovic
replication and improve your app performances. -- Mladen Adamovic http://www.online-utility.org http://www.cheapvps.info http://www.vpsreview.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

Re: Tomcat's scalability

2006-06-19 Thread Mladen Adamovic
of performance improvement would multiple JVM/Tomcat installations provide? Are there any benchmarks available? -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com

Re: Tomcat's scalability

2006-06-19 Thread Mladen Adamovic
Leon Rosenberg wrote: Teoreticly, your servers should be faster if you configure 4 Tomcat instances (4 JVMs) to do round robin. You should be able to improve performances almost 4x. could you explain why?? Isn't Tomcat and JVM still single threaded? Single thread = single processor usage

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
thread level parallelism in operating system. AFAIK -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com - To start a new topic, e-mail: users

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
. It is important. Where is your bottleneck? There is a big difference between getting tomcat to serve static content and making your servlet do long running SQL jobs. Or to have i.e. extremely large Lucene database or some other slow algorithm. -- Mladen Adamovic http://www.online-utility.org http

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
. One JVM instance is (still) single operating system thread IMHO. At least it was in 1.4.2 on Linux and Windows and I haven't heard they improve it on 1.5.0. Otherwise ps aux should show process java few times. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com

Re: Activating a batch file when Tomcat service is started

2006-06-20 Thread Mladen Adamovic
{ proces = Runtime.getRuntime().exec(cmdopt, null, new File(tempDirectory)); } catch (IOException ex) { ex.printStackTrace(); } snip It is rough idea but it should be helpful. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com

Re: pdf documents

2006-06-20 Thread Mladen Adamovic
? -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Tomcat's scalability

2006-06-21 Thread Mladen Adamovic
Please see http://java.sun.com/developer/technicalArticles/Programming/linux/ Java on linux has been natively multithreaded since 1.3 Uops, I haven't known. Thank you all for your information (to Alex Turner, Leon Rosenberg, Darryl Milles). I was mistaken about this.

Re: Tomcat's scalability

2006-06-21 Thread Mladen Adamovic
Alex Turner wrote: Please also note that having a max threads of 750 is pretty much gaurtenteed to cause your system to grind to a halt under high load. (Most linux systems I've seen buckle somewhere around a load average of 75 or so, which means 75 threads waiting for CPU time). You mean 75

Re: Out of Memory Error

2006-06-26 Thread Mladen Adamovic
2) could you make other backup server to measure load with Apache benchmark (ab). -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com - To start

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Mladen Adamovic
=// get image from the database response.setContentType(image/jpeg); ServletOutputStream stream = response.getOutputStream(); stream.write(mybytes); Right? Andrea Salvi (or whoever who started this discussion), please post code you will use :). -- Mladen Adamovic http://www.online

Re: Need help deciphering eclipse console

2006-06-26 Thread Mladen Adamovic
in the program. You have somewhere probably int i=1; or similar and you don't use it any further. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com - To start

static objects, server.xml and preventing running out of available file descriptors

2006-09-23 Thread Mladen Adamovic
. -- Mladen Adamovic http://www.online-utility.org http://www.cheapvps.info http://www.vpsreview.com

Re: static objects, server.xml and preventing running out of available file descriptors

2006-09-24 Thread Mladen Adamovic
Leon Rosenberg wrote: I use WordNetProcessor in many JSP files and it seems if I use it in static way using %! static WordNetProcessor wordNetProcessor=new WordNetProcessor(); % it won't lock many files. then your WordNetProcessor class is probably buggy. Maybe you should show us your code to

Re: static objects, server.xml and preventing running out of available file descriptors

2006-09-24 Thread Mladen Adamovic
I've put System.gc() in one place in the code and I'm seeing that lsof | wc -l shows that my web application uses less file descriptors as time go on :) I hope the server won't run out of available file descriptors in the future. Also, I've put in /etc/profile.local the line ulimit -n 8192,

Re: static objects, server.xml and preventing running out of available file descriptors

2006-09-25 Thread Mladen Adamovic
Darryl Miles wrote: Also, I've put in /etc/profile.local the line ulimit -n 8192, hoping it will help. WARNING: If you are unix the JVM uses the select() then increasing the ulimit above the default 1024 maybe dangerous. Is it dangerous in Linux also? -- Mladen Adamovic http

Re: static objects, server.xml and preventing running out of available file descriptors

2006-09-25 Thread Mladen Adamovic
I prepared one bash script which aim is to reboot the computer if its web server is down for approx. 30 minutes. I think that bash script might be useful for others on this list, so I'm posting it here. But, I'm not sure what is the best way to run that script. I'm using Suse 9.3 on the server.

Re: static objects, server.xml and preventing running out of available file descriptors

2006-09-25 Thread Mladen Adamovic
BufferedReader(...); and doesn't do br.close() that file descriptor will be automatically closed on garbage collection, when the object isn't in use any longer, right? -- Mladen Adamovic http://www.online-utility.org http://www.cheapvps.info http://www.vpsreview.com

Re: tomcat plugin sysdeo

2006-09-27 Thread Mladen Adamovic
Tracy Nelson wrote: If you haven't used Eclipse before, you also might want to give NetBeans (www.netbeans.org) a look. It comes with Tomcat 5.5.17 installed by default, all configured and ready to go. I also use Netbeans for web development although I prefer Eclipse. Netbeans works with