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
://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
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
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
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.
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
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"
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
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
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
=// 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
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
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
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.
-
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
{
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
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
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
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
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
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
---
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
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
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
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
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: [
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
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
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.
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
/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
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
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
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
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
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
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
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
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
***
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]
/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]
more under
my host, but it don't work.
--
Mladen Adamovic
http://home.blic.net/adamm
http://www.shortopedia.com
http://www.froola.com
42 matches
Mail list logo