purgeCentralCache sometimes hangs with version 1.3.1
I had the same problem as Jan in this ticket > https://jira.ow2.org/browse/#763. Sometimes, the purgeCentralCache script hangs, and never terminates. As it's ran by cron every 10 minutes, processes accumulate, increasing RAM occupation. I'm using Apache::Session::File as backend too (on NFS to be share beetween two servers in active/passive mode), and LemonLDAP v1.3.1 The problem is with lock files maybe.. this is the end of the output when I strace the purgeCentralCache script :
open("/var/lib/lemonldap-ng/sessions/lock/Apache-Session-5c389e9df1292101fc71a266c7eac920.lock", O_RDWR|O_CREAT|O_TRUNC, 0666) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd994b338) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(4, 0, SEEK_CUR) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
flock(4, LOCK_SH) = 0
stat("/var/lib/lemonldap-ng/sessions/5c389e9df1292101fc71a266c7eac920", {st_mode=S_IFREG|0644, st_size=13147, ...}) = 0
open("/var/lib/lemonldap-ng/sessions/5c389e9df1292101fc71a266c7eac920", O_RDWR|O_CREAT, 0666) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd994b348) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(5, 0, SEEK_CUR) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=13147, ...}) = 0
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
read(5, "\5\10\3\0\0\0\34\n$B9D76543-D7EA-4141-DEDE"..., 8192) = 8192
read(5, ":AttributeValue><saml:AttributeV"..., 8192) = 4955
read(5, "", 8192) = 0
flock(4, LOCK_EX
We plan to update to v1.4.5, but in the meanwhile, is there any workaround we can apply to avoid this problem ?