Php sessions locking issue

Balamurali Govindan Posted in Performance and Scalability 2 years ago

Dear All,

We were encountering performance issues and found this below issue while debugging.

https://ma.ttias.be/php-session-locking-prevent-sessions-blocking-in-requests/

Please let me know if someone knows of a solution or have already fixed this.

Thank You.

Replies
in Balamurali Govindan Replied 2 years ago

Yes, now the performance is much better. Thank You.

Indonesian Arsalan Shah Replied 2 years ago

I believe its verified profiles. Enable chat and make others disabled. Verified profiles updated in latest version but it also requires OSSN 6.6 Ajax removed in new version.

in Balamurali Govindan Replied 2 years ago

Yes, we found that "Verified Profiles" also was impacting the performance. So disabling some of these modules really fixed the performance issues. Now the site performance is much better. Thank You.

We are still testing and once code migrated to LIVE we will know better.

Indonesian Arsalan Shah Replied 2 years ago

Any progress on this ? did you disabled and tested ?

Indonesian Arsalan Shah Replied 2 years ago

Also disable OssnMessageTyping these are ajax intensive

Indonesian Arsalan Shah Replied 2 years ago

What is the performance if you disable OSSN chat and real time comments +component?

in Balamurali Govindan Replied 2 years ago

Peter, Awesome. Please let me know what is the solution in OSSN for this. It would be of great help. Thank You.

in Balamurali Govindan Replied 2 years ago

Arsalan,

We see in several ajax processes.

userverified/geticon
ossnchat/boot/ossn.boot.chat.js
rtcomments/status
etc...

The problem is all components are invoking system/start.php with component initialization. Lots of data and lots of components slow the performance drastically because every process takes some time to execute and they blocks sessions during this time. Every call causes run an init function of every component.

in Peter Harrison Replied 2 years ago

I know the solution of it. It will helps you.