You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we've updated from PHP 7.2/xDebug 2/stomp-php 4.5.1 to PHP 8.1/xDebug 3/stomp-php 5.0.0 and found out that in our case there is a 50% increase of calls and memory usage of Stomp\Network\Connection::isDataOnStream, more specifically from 267 945 calls to 379 666 calls and 79 751 040 B to 115 574 720 B. We didn't change our code at all, just PHP and composer packages.
Also I've noticed that in callers, I see that sendFrame is called from methods send, connect and disconnect in 4.5.1, however in 5.0.0 it's called only from send and connect. Not sure if this could cause some troubles?
It was profiled thru xDebug, viewed by PhpStorm. Unfortunately I have no script or a way how to provide you test data to show it to you.
Thanks for any info
The text was updated successfully, but these errors were encountered:
D0L1K
changed the title
Memory usage increase
Memory usage and calls amount increaseafter update
Jul 19, 2022
D0L1K
changed the title
Memory usage and calls amount increaseafter update
Memory usage and calls amount increase after update
Jul 19, 2022
Looking through the changes between those two versions, there aren't many of code (mostly adding/editing tests) 4.5.1...5.0.0
It is possible that switching $this->isDataOnStream() to $this->hasDataOnStream() in Stomp\Network\Connection may have had this effect. hasDataOnStream() calls connectionHasDataToRead() which calls isDataOnStream() in a loop until it gets data or times out. 🤷
As for the client's use of sendFrame in 5.0.0, it does still appear to be the same as in 4.5.1. In case I'm just not seeing it, could you send a link to the spot you expect to see it?
Hi,
we've updated from PHP 7.2/xDebug 2/stomp-php 4.5.1 to PHP 8.1/xDebug 3/stomp-php 5.0.0 and found out that in our case there is a 50% increase of calls and memory usage of Stomp\Network\Connection::isDataOnStream, more specifically from 267 945 calls to 379 666 calls and 79 751 040 B to 115 574 720 B. We didn't change our code at all, just PHP and composer packages.
Also I've noticed that in callers, I see that sendFrame is called from methods send, connect and disconnect in 4.5.1, however in 5.0.0 it's called only from send and connect. Not sure if this could cause some troubles?
It was profiled thru xDebug, viewed by PhpStorm. Unfortunately I have no script or a way how to provide you test data to show it to you.
Thanks for any info
The text was updated successfully, but these errors were encountered: