Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-20 Thread Rainer Jung
Hi,

socket_timeout on Solaris: does very well during connect.
Also no more erors/warning during build.

I tested by adding microsecond timestamps to jk_log, adding some trace log
messages to nb_connect and changing socket_timeout in nb_connect to
millisecond resolution.

Then I stressed to tomcat system and could see that:

- the connect call comes back immediately (non blocking) with EINPROGRESS
- the select call comes back immediately after connect or very close to
the timeout given.
- if I put the timeout very small (e.g. 5 milliseconds) connect fails and
indeed a packet sniff shows, that the handshake was not fast enough.
- with 15 milliseconds one of the three attempts succeed (motly the second
one)
- with a higher timeout the first attempt succeeds and the timestamp of
the return of the select call nicely fits with the end of the three way
tcp handshake (syn/sysn_ack/ack) from the packet sniff.
- without any stress on the target system the connect alredy comes back
with rc/errno=0 (success) and no select is done.

Regards,

Rainer

 Rainer Jung wrote:
 I could help with Solaris info. If you tell me, what you are interested
 in, I can do some tests.

 Build, socket_timeout and JkShmFile.

 Regards,
 Mladen.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Rainer Jung
Hi,
I could help with Solaris info. If you tell me, what you are interested 
in, I can do some tests.

Regards,
Rainer
Mladen Turk wrote:
Mark Thomas wrote:
I suspect that most of them are invalid/already fixed bug would be 
grateful if you could take a look.

Hi,
Yes, most are fixed. Other I simply do not understand.
I'll clean up fixed and invalid, and instruct the reporters
to check beta version. Some problem like Solaris one are
really hard to track down without a box :)
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Mladen Turk
Rainer Jung wrote:
Hi,
I could help with Solaris info. If you tell me, what you are interested 
in, I can do some tests.

Build, socket_timeout and JkShmFile.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Rainer Jung
Hi Mladen,
- Build for apache 1.3 OK (but see detailed comments).
- Running with apache 1.3 and JkShmFile: Looks OK
- jkstatus: Looks OK
- socket_timeout: Still needs to be tested (will try later)
- Logging shows mod_jk initialization two times! Once for a process A,
which does no longer exist after apache startup has finished, and a
second time the same lines for the usual parent process B. System call
trace shows, that A forks B and exits during startup. In my case, apache 
is not run from the root account.

Anything else (apart from socket_timeout) I should test (test cases?)
Details:
Code from CVS HEAD today 17:00 CET.
Environment Solaris 8 UltraSparc, autoconf 2.59, automake 1.9, libtool
1.5, GNU m4 1.4.2, GNU make 3.80, gcc 3.2, Solaris ld 1.279.
CFLAGS set to -O2, CC set to gcc -specs=MY_SPECS_PATH/specs and the
specs file differs from the standard one by:
51c51
 %{static|static-libgcc:-lgcc
-lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc
-lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:-lgcc_s%M}}}
---
  %{static|static-libgcc:-lgcc
-lgcc_eh}%{!static:%{!static-libgcc:%{!shared-libgcc:-lgcc
-lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}}
This is to link statically against libgcc. Otherwise the runtime system
must have libgcc_s.so, which usually is not the case for Solaris systems.
buildconf.sh warns:
configure.in:59: warning: underquoted definition of JK_CHECK_SETSOCKOPT
   run info '(automake)Extending aclocal'
   or see
http://sources.redhat.com/automake/automake.html#Extending%20aclocal
configure.in: installing `scripts/build/unix/install-sh'
configure.in: installing `scripts/build/unix/missing'
The underquoted warning means, that future versions of automake might
require line 59 to include additional brackets:
AC_DEFUN([JK_CHECK_SETSOCKOPT], [
./configure --with-apxs=MY_APXS_PATH/apxs
Nothing special.
make: Warning:
libtool: install: warning: remember to run `libtool --finish SOME_PATH'
libtool: install: warning: remember to run `libtool --finish SOME_PATH'
but inspection of libtools show, that --finish would not do anything in
our case.
Copied apache-1.3/mod_jk.so.0.0.0 to libexec/mod_jk.so.
Configured apache:
LoadModule jk_module  libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /SOME_PATH/conf/workers.properties
JkShmFile /SOME_PATH/logs/mod_jk.shm
JkLogFile /SOME_PATH/logs/mod_jk.log
JkLogLevel trace
...
# Inside virtual host
# Where to put jk logs
JkLogFile /SOME_PATH/logs/mod_jk_21000.log
JkLogLevel trace
JkMount /status status
JkMount /*.jsp balancer
Test:
lynx -cfg=/home/jung/lib/lynx.cfg http://localhost:21000/status
shows version 1.2.9 and detail info for load balancing worker and single
worker.
Regards,
Rainer
Mladen Turk wrote:
Rainer Jung wrote:
Hi,
I could help with Solaris info. If you tell me, what you are 
interested in, I can do some tests.

Build, socket_timeout and JkShmFile.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Rainer Jung
Concerning socket_timeout:

1) In common/jk_connect.c there is a typo:

   374  setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO,
   375 (const void *) tv, sizeof(tv));
   376  setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO,
   377 (const void *) tv, sizeof(tv));

so both setsockopts use the same option. It should be SO_SNDTIMEO in line
376. Maybe that's easy enough to change for 1.2.9.

2) The test in configure about functionality of the timeouts is broken.
The test program does not compile under Solaris, because it needs
-lsocket.

Undefined   first referenced
 symbol in file
socket  /var/tmp//ccKuhLE0.o
setsockopt  /var/tmp//ccKuhLE0.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:19481: $? = 1
configure: program exited with status 1

When I compile the test program with -lsocket it compiles but it exits
as expected with 1. So under Solaris the two timeouts are defined in the
include files, but they do not work with setsockopt. Since this doesn't
change the result in the end, it might also be corrected after 1.2.9.

3) in common/jk_connect.c in method jk_is_socket_connected the second
argument timeout is never used.

4) Still need to test functionality of socket_timeout under Solaris.

Regards,
Rainer

 Rainer Jung wrote:
 Hi,

 I could help with Solaris info. If you tell me, what you are interested
 in, I can do some tests.


 Build, socket_timeout and JkShmFile.

 Regards,
 Mladen.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Mladen Turk
Rainer Jung wrote:
Concerning socket_timeout:
1) In common/jk_connect.c there is a typo:
   374  setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO,
   375 (const void *) tv, sizeof(tv));
   376  setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO,
   377 (const void *) tv, sizeof(tv));
so both setsockopts use the same option. It should be SO_SNDTIMEO in line
376. Maybe that's easy enough to change for 1.2.9.
Yes, it should be SO_SNDTIMEO. Seems like typo :).

2) The test in configure about functionality of the timeouts is broken.
The test program does not compile under Solaris, because it needs
-lsocket.
Can you provide a patch for that?
When I compile the test program with -lsocket it compiles but it exits
as expected with 1. So under Solaris the two timeouts are defined in the
include files, but they do not work with setsockopt. Since this doesn't
change the result in the end, it might also be corrected after 1.2.9.
Sure, that's the purpose of JK_CHECK_SETSOCKOPT function.
Regards,
Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Henri Gomez
jk 1.2.9-dev build on iSeries without problem.

Wit my admins to redeploy and test it


On Thu, 17 Mar 2005 20:37:58 +0100, Mladen Turk [EMAIL PROTECTED] wrote:
 Rainer Jung wrote:
  Concerning socket_timeout:
 
  1) In common/jk_connect.c there is a typo:
 
 374  setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO,
 375 (const void *) tv, sizeof(tv));
 376  setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO,
 377 (const void *) tv, sizeof(tv));
 
  so both setsockopts use the same option. It should be SO_SNDTIMEO in line
  376. Maybe that's easy enough to change for 1.2.9.
 
 
 Yes, it should be SO_SNDTIMEO. Seems like typo :).
 
 
  2) The test in configure about functionality of the timeouts is broken.
  The test program does not compile under Solaris, because it needs
  -lsocket.
 
 
 Can you provide a patch for that?
 
 
  When I compile the test program with -lsocket it compiles but it exits
  as expected with 1. So under Solaris the two timeouts are defined in the
  include files, but they do not work with setsockopt. Since this doesn't
  change the result in the end, it might also be corrected after 1.2.9.
 
 
 Sure, that's the purpose of JK_CHECK_SETSOCKOPT function.
 
 
 Regards,
 Mladen.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Mladen Turk
Henri Gomez wrote:
jk 1.2.9-dev build on iSeries without problem.
Wit my admins to redeploy and test it
Cool!
I'll probably tag that tomorrow.
Its getting late here :)
Since Apache infrastructure will be unavailable over the
weekend I hope the beta will be mirrored by that time.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread NormW
Greetings All,
Still get a clean build for NetWare against Apache 2.1 and 2.0.53.
The XML pages work fine, although the HTML status pages might put the 
numbers under headings better if 'border=1' was enabled.
AFAIK builds for Apache 1.1.3 for NetWare still has issues, since I've 
not seen mention of updates for that version. Perhaps JJC can comment?

Regards,
Norm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Rainer Jung
 2) The test in configure about functionality of the timeouts is broken.
 The test program does not compile under Solaris, because it needs
 -lsocket.

 Can you provide a patch for that?

How about:

*** configure.in.orig   Thu Mar 17 17:00:36 2005
--- configure.inThu Mar 17 21:28:29 2005
***
*** 56,63 
  dnl check for flock function.
  AC_CHECK_FUNC(flock, AC_DEFINE(HAVE_FLOCK,1,[Have flock()]))

! AC_DEFUN(JK_CHECK_SETSOCKOPT, [
  AC_MSG_CHECKING(whether to use $1 with setsockopt())
  AC_TRY_RUN([
  #include sys/types.h
  #include sys/socket.h
--- 56,65 
  dnl check for flock function.
  AC_CHECK_FUNC(flock, AC_DEFINE(HAVE_FLOCK,1,[Have flock()]))

! AC_DEFUN([JK_CHECK_SETSOCKOPT], [
  AC_MSG_CHECKING(whether to use $1 with setsockopt())
+ saved_LIBS=$LIBS
+ LIBS=$saved_LIBS -lsocket
  AC_TRY_RUN([
  #include sys/types.h
  #include sys/socket.h
***
*** 88,93 
--- 90,96 
  , [ AC_MSG_RESULT([yes]) AC_DEFINE(USE_$1, 1, [Define to use $1 with
setsockopt()]) ]
  , [ AC_MSG_RESULT([no]) ]
  )
+ LIBS=$saved_LIBS
  ])dnl

  dnl check for SO_RCVTIMEO and SO_SNDTIMEO

Since it's only changed line and three added I did not use local CVS to
make diff -u and I hope this context diff suffices.

That way the test runs smoothly, of course with the same negative but
clean result:

configure:19433: checking whether to use SO_RCVTIMEO with setsockopt()
configure:19480: gcc -specs=/usr/local/apautobuild/specs -o conftest -O2  
conftest.c  -lsocket 5
configure:19483: $? = 0
configure:19485: ./conftest
configure:19488: $? = 1
configure: program exited with status 1

Regards,
Rainer




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-17 Thread Jean-Jacques Clar
Greetings,
As Norm did, I was able to build and test against 2.1.4 beta and 2.0.52
for NetWare.
I ran load testing against 1.2.9dev today with 400 virtual clients
requesting JSPs and Servlets on a dual proc p4 with HT enabled. 
It is looking solid. The test will run overnight.
 
I will find time tomorrow to look at the 1.3 issues, I did not build
for 1.3 since jk1.2.8.
 
Regards,
JJ

 [EMAIL PROTECTED] 3/17/2005 1:26:49 PM 

Greetings All,
Still get a clean build for NetWare against Apache 2.1 and 2.0.53.
The XML pages work fine, although the HTML status pages might put the 
numbers under headings better if 'border=1' was enabled.
AFAIK builds for Apache 1.1.3 for NetWare still has issues, since I've

not seen mention of updates for that version. Perhaps JJC can comment?

Regards,
Norm


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-16 Thread Mark Thomas
Since you went through the previous set of JK bugs for TC4 a few more 
have emerged. They are:
8541
15314
24628
29777
32519
32696
32998
33248

I suspect that most of them are invalid/already fixed bug would be 
grateful if you could take a look.

Cheers,
Mark
Mladen Turk wrote:
Hi all,
My plan is to tag the JK_1_2_9_BETA on March 17th.
The beta release will be available for testing from that date.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-16 Thread Mladen Turk
Mark Thomas wrote:
I suspect that most of them are invalid/already fixed bug would be 
grateful if you could take a look.

Hi,
Yes, most are fixed. Other I simply do not understand.
I'll clean up fixed and invalid, and instruct the reporters
to check beta version. Some problem like Solaris one are
really hard to track down without a box :)
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tagging JK 1.2.9 on 3/17/2005

2005-03-15 Thread Mladen Turk
Hi all,
My plan is to tag the JK_1_2_9_BETA on March 17th.
The beta release will be available for testing from that date.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tagging JK 1.2.9 on 3/17/2005

2005-03-15 Thread Henri Gomez
Ok, I'll do the usual specific iSeries build to ensure everything is ok.

I rebuild the current HEAD on Linux and it seems to works as expected :)


On Tue, 15 Mar 2005 12:34:29 +0100, Mladen Turk [EMAIL PROTECTED] wrote:
 Hi all,
 
 My plan is to tag the JK_1_2_9_BETA on March 17th.
 The beta release will be available for testing from that date.
 
 Regards,
 Mladen.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]