Re: serving static html with Tomcat

2006-10-24 Thread Mladen Adamovic
w you can easily make database 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.apa

Re: run php & jsp on the same server

2006-10-16 Thread Mladen Adamovic
://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html -- 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

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 To

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

2006-09-25 Thread Mladen Adamovic
der br=new 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

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-24 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? -- Mlade

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-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

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

2006-09-23 Thread Mladen Adamovic
tors since most likely they are shared among all virtual private servers. Thanks in advance for any advice / comment. -- Mladen Adamovic http://www.online-utility.org http://www.cheapvps.info http://www.vpsreview.com

Re: Need help deciphering eclipse console

2006-06-26 Thread Mladen Adamovic
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

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 Ada

Re: Out of Memory Error

2006-06-26 Thread Mladen Adamovic
hits/day do you have 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

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: 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: pdf documents

2006-06-20 Thread Mladen Adamovic
o/pdf ? -- 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: 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(); } It is rough idea but it should be helpful. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
n't wrong. 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.or

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
it is much more than 3 AFAIK. So far it sounds that the approach of adding separate instance of Tomcat and using round robin is better than adding a separate JVM. Tomcat will run in seperate JVM. Your problem is NOT in Tomcat. I would site you have typical DB related problem. -- Mladen Ada

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
ng. 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

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
system thread IMHO. It means you don't exploit 4 processors if you have 4. To exploit 4 processors you have to setup 4 JVM (4 tomcat instances) to do round robin. As long as you have 1 JVM active you don't exploit thread level parallelism in operating system. AFAIK -- Mladen Ada

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-19 Thread Mladen Adamovic
nd 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-idea4

Re: Bandwidth statistics in Tomcat

2006-06-13 Thread Mladen Adamovic
PROTECTED]&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 htt

Re: JSPs will not load with virtual domain

2006-06-11 Thread Mladen Adamovic
r.xml have something like : test.com Although using of Context inside Host tag is discouraged in new version of Tomcat this works for me. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www

Re: JSPs will not load with virtual domain

2006-06-09 Thread Mladen Adamovic
thout 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

Re: ajax response from tomcat by including JSP from a servlet - fails silently when HTML is badly formed.

2006-06-04 Thread Mladen Adamovic
is in Tomcat? -- 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: users@tomcat.apache.org To unsubscribe, e-mail: [

Re: JSP Compilation Errors - Tomcat 5.5.17

2006-05-31 Thread Mladen Adamovic
set up your servers. Google "rsync backup linux server" Anyway, you can tar tomcat directory and untar it on the other machine and it should work, but the same is not the case for Java AFAIK. I don't know for Apache. -- Mladen Adamovic http://home.blic.net/adamm http://www.sho

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Mladen Adamovic
p.s. you should learn 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 s

Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64

2006-05-30 Thread Mladen Adamovic
other. 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.

Re: How to notify user ...

2006-05-29 Thread Mladen Adamovic
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-utilit

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: Can't find ajp13 connector

2006-05-23 Thread Mladen Adamovic
lassPath problems 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

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 Tomc

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 log4j

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 ti

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 more

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 c

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 ab

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 may

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

2006-05-19 Thread Mladen Adamovic
*** I've been screwing around with this for days, reading books and the web help, but can't find out what's wrong. Any help is greatly appreciated. TIA and regards, anw - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Virtual Host problem with classpath

2006-05-19 Thread Mladen Adamovic
/widgetX/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]

Virtual Host and classpath related problem on deployment

2006-05-18 Thread Mladen Adamovic
more under my host, but it don't work. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com