Probleme mit WordPress-Präsenz

Allgemeine Diskussionen rund um KeyHelp.
User avatar
Fezzi
Posts: 132
Joined: Wed 12. Dec 2018, 04:04

Re: Probleme mit WordPress-Präsenz

Post by Fezzi »

Ich wuerde hier eher mit den untenstehenden Einstellungen optimieren...

pm.max_children = 10
pm.max_requests = 500
To find the optimal settings for pm = ondemand with pm.max_children = 10 and pm.max_requests = 500, you can use the following approach:

Calculate pm.max_children:
The pm.max_children setting limits the maximum number of child processes allowed to be spawned.
You can roughly determine a sensible value for pm.max_children by dividing the available system memory by the maximum child process size
.
For example, if you have a total of 16GB and your processes consume 100 MB each: 16000100=16010016000​=160, meaning you should be able to run roughly a little under 160 children before running out of memory
.
Set pm.max_requests:
pm.max_requests sets the number of requests each child process should execute before respawning.
This setting is helpful for working around memory leaks.
For the given scenario, you can set pm.max_requests = 5002
.
Monitor and adjust:
It's important to monitor the server's performance and adjust these settings based on the actual resource usage and traffic patterns
.

By following these steps, you can determine and set the optimal values for pm = ondemand with pm.max_children = 10 and pm.max_requests = 500 based on your server's resources and the specific requirements of your PHP applications.
Gruss

Fezzi

Everyone can do something, no one can do everything.
goldene-zeiten
Posts: 366
Joined: Tue 8. Feb 2022, 17:05
Location: Regensburg
Contact:

Re: Probleme mit WordPress-Präsenz

Post by goldene-zeiten »

Tatsächlich verdichtet sich nun der Verdacht, dass es am OPCache liegt. Denn heute hatte ich mit einer unserer Hauptpräsenzen den gleichen Fehler (503) und die basieren alle auf TYPO3. Und als ich dann die Caches löschte, war der Fehler auch wieder weg. Doch wo fängt man da an zu suchen?

Nichtsdestotrotz sind deine empfohlenen Einstellungen bereits schon eine massive Verbesserung:
pm.max_children = 10
pm.max_requests = 500

Wir sind also auf der richtigen Spur :)!

Die OPCache-Einstellungen beim Benutzer sehen wie folgt aus:

--
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=512
opcache.interned_strings_buffer=64
opcache.max_accelerated_files=150000
opcache.max_wasted_percentage=15
opcache.fast_shutdown=1
opcache.validate_timestamps=1
opcache.revalidate_freq=0
opcache.revalidate_path=0
opcache.max_file_size=0
opcache.file_cache_only=1
opcache.file_cache="/home/users/XYZ/tmp"

[memcache]
memcache.dbpath="/var/lib/memcache"
memcache.maxreclevel=0
memcache.maxfiles=0
memcache.archivememlim=0
memcache.maxfilesize=0
memcache.maxratio=0
memcache.protocol=ascii
memcache.allow_failover=1
memcache.chunk_size=32768
memcache.default_port=11211
memcache.hash_function=fnv
memcache.hash_strategy=consistent
memcache.max_failover_attempts=20
--
Goldene Zeiten Juweliere
Goldankauf - Juwelier - Trauringe - Verlobungsringe - Goldschmiede - Uhrmacher
Post Reply