tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fredk2 <>
Subject mod_jk --enable-flock documentation question
Date Wed, 12 Sep 2007 04:22:10 GMT


Reading the mod_jk (1.2.25) compilation documentation for --enable-flock it

"In case the operating system supports flock system call use this flag to
enable this faster locks that are implemented as system call instead
emulated by GNU C library.
However those locks does not work on NFS mounted volumes, so you can use
"--enable-flock" during compile time to force the flocks() calls."

+ this text seems to say to use --enable-flock to tell mod_jk to use the
flock system call - if supported.
Then it says that NFS does not support the flock system call.  Thus it seems
to me that correct sentence whould be:
"However those locks do not work on NFS mounted volumes, hence do not set 
--enable-flock during compile time".

./configure says:
Linux   -> checking for flock... yes
Solaris -> checking for flock... no

So i guess this is a non-issue for Solaris.

+ Is it correct that --enable-flock only affects the handling of JkShmFile?
thus you would mitigate the potential issue(s) if you move this file to a
local disk /tmp while the apache and logfiles can remain on the NFS mount.

Many thanks - Fred
View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message