Project

General

Profile

Actions

Bug #80804

closed

Apache precesses overload because of typo3temp/locks/flock_

Added by Fedir RYKHTIK over 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Locking / Session Handling
Target version:
-
Start date:
2017-04-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:

Description

Hi there,

We have a really strange problem with locks : sometimes, Apache is completely saturated, too much processes, looks like, because of TYPO3 locking system.

The bug appear really sometimes, but now more and more regularly, 1 time / day. Really annoying bug, it puts all sites on the server down.

Actual solutions : or to remove all lock files from typo3temp, or to restart Apache.

Here are some strace logs :

  1. strace -p 5886

Process 5886 attached

restart_syscall(<... resuming interrupted call ...>) = 0

open("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", O_WRONLY|O_CREAT, 0666) = 5
fstat(5, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
lseek(5, 0, SEEK_CUR) = 0
stat("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
chmod("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", 0664) = -1 EPERM (Operation not permitted)
flock(5, LOCK_EX) = 0

open("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", O_WRONLY|O_CREAT, 0666) = 134
fstat(134, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
lseek(134, 0, SEEK_CUR) = 0
close(135) = 0
stat("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
chmod("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", 0664) = 0
flock(134, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)
flock(5, LOCK_UN) = 0
close(5) = 0
nanosleep({0, 100000000}, NULL) = 0

open("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", O_WRONLY|O_CREAT, 0666) = 5
fstat(5, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
lseek(5, 0, SEEK_CUR) = 0
stat("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
chmod("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", 0664) = -1 EPERM (Operation not permitted)
flock(5, LOCK_EX) = 0

open("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", O_WRONLY|O_CREAT, 0666) = 135
fstat(135, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
lseek(135, 0, SEEK_CUR) = 0
close(134) = 0
stat("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
chmod("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", 0664) = 0
flock(135, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)
flock(5, LOCK_UN) = 0
close(5) = 0
nanosleep({0, 100000000}, NULL) = 0

...

Best regards,
Fedir


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #82929: sys_file_references filled with duplicate/multiple entriesClosed2017-11-06

Actions
Actions

Also available in: Atom PDF