-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ros / rosbridge freezes with multiple clients #243
Comments
Maybe this error message will give some hint:
Sometimes we get the same issue, just with /rosapi/topics. |
I wrote a small tester, if you need, please let me know! |
Can you be a little more precise in describing the error? For example, it would be super useful to know whether the CPU usage comes from the rosbridge node, the roscore, the rosapi node, or something else entirely. |
https://www.dropbox.com/s/hswgtlf3uztwyus/rostest.zip?dl=1 With this simple website you can test and I hope you will get the same result as us, just use the magic numbers setted up by default. You should wait a couple of sec before the red error comes. publisher.html: you can set the parameters of the test (topic number, subscriber number, subscriber open delay, publish value delay) If I order the processes in System Monitor (Ubuntu 14.04) by CPU or Memory descending, I can see rosbridge on top. With this tester I can not achieve 100% CPU useage with 4 cores and 2gb of ram, but the error is still there like on the attached image. If we want to connect many robots, PLCs, devices to the same ROS server in a factory, it wont be so hard to reach 30 topics and 10 subscribers, that is why I choose this default values. |
Sorry, I wasn't able to reproduce your problem using that script yet. |
I seem to have the same issue. Has there been any further work on this? |
facing the same issue, trying to connect with multiple clients from roslibjs, after 8 or higher number of clients the ros bridge server halts. :/ |
I still have the same issue. Now, I am able to kill it with only 1 client. I am getting this error: [ERROR] [1550696982.668135]: [Client 0] [id: call_service:/rosapi/topic_type:1278] call_service ROSServiceIOException: Unable to communicate with service [/rosapi/topic_type], address [rosrpc://asus-ubuntu:39955] I have only 1 client through rosbridge + more python, with rospy. Sometimes this error just pops up, 3-4 in a row, then it is working again. |
Following up on this.. |
Can confirm this is still the case, rosbridge seems to break down in tears when more than one client connects. |
Until #464 is merged one client can block messages to all other clients. |
It's been merged and I've tested it out. Seems to solve all multiclient issues for my setup. Thanks for the help :D |
Would the issue in question here explain why I can reproduce at will this following misbehavior? |
This issue has been marked as stale because it has been open for 180 days with no activity. Please remove the stale label or add a comment to keep it open. |
Hi,
Maybe we are triing to use ROS + ROSBridge on a wrong way, or it has some problems in the request queues, but our problem is the following:
Sometimes we gets errors in roslog, that a rosapi service (which should be there by default) is not existing (rosapi/topics, rosapi/bublishers)
Could you help us solve this problem? I am not sure which side is the faulty one, so maybe some rosbridge settings could solve the problem.
My personal idea is that we make the request queue absolutely full which uses all of the server's memory / cpu and after a time it collapses, but ofc. I am not sure, this is just an idea to start brainstorming...
Thanks in advance!
Balint Tahi
PPM AS
The text was updated successfully, but these errors were encountered: