----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Ryan Vanderwerf wrote:
>
> Greetings! I've scoured the FAQs, digests, and newgroups trying to figure
> out why running Jserv 1.1 manually with load balancing says I have 5
> connections max on the Jserv status page.
>
> My jserv.properties has security.maxConnections=500, which does work if I
> have Apache auto-run my JVM, but using the same properties file when
> running manually sets it to 5 (unless the display is wrong?). I though I
> read somewhere that running Jserv on manual mode it ignores the
> jserv.properties file, but then how would one put in settings?
>
> For example on the demo jserv load balance site has the same listing I have:
> http://195.132.26.24/jserv/engine/3/org.apache.jserv.JServ?status
>
> Listed under 'General Configurations' Maximum Connections says 5.
>
> My setup:
> Apache 1.3.11, Jserv 1.1, RH 6 kernel 2.2.5 (another machine has the same
> issue with 1.0b4 of Jserv on linux kernel 2.2.11) and Blackdown jdk 117v3.
>
> In manual mode I run Jserv like this:
> props8007=/usr/local/jserv/conf/jserv.properties
> props8008=/usr/local/jserv/conf/jserv-8008.properties
> /usr/jdk117_v3/bin/java -classpath $classes org.apache.jserv.JServ
> $props8007 &> /usr/local/apache/logs/jserv8007.log &
> /usr/jdk117_v3/bin/java -classpath $classes org.apache.jserv.JServ
> $props8008 &> /usr/local/apache/logs/jserv8008.log &
>
> The only thing else I have that's not standard is load balancing between 2
> JVMs locally:
> ApJServMount /servlets balance://set1/root
> ApJServBalance set1 local1
> ApJServBalance set1 local2
> ApJServHost local1 ajpv12://localhost:8007
> ApJServHost local2 ajpv12://localhost:8008
> ApJServRoute JS1 local1
> ApJServRoute JS2 local2
> ApJServShmFile /usr/local/apache/logs/jserv_shm
> -------
> Seems like I'm missing something obvious, but I'd think someone else would
> have had the same problem as I and already asked.
>
> Ryan Vanderwerf
> [EMAIL PROTECTED]
>
Hi Ryan and thanks for your time, it took few minutes to see what's
happening.
The Maximum Connections that is displayed in the status screen is not
the value of security.maxConnections but
instead the value of security.backlog.
set in jserv.properties (or default=5 if not present).
It seems that security.maxConnections is NOT used by JServ.
I didn't understand why, and I hope Michal will tell us.
Rigth now, to increase the max number of Max Connections, add the
following :
security.backlog=50 (by example) in jserv.properties.
too bad nobody has seen it before. (or maybe I'm missing something ?)
Jean-Luc
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]