Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
343 views
in Technique[技术] by (71.8m points)

Janus CPU spikes

Our team is currently working on setting up a WebRTC server based on Janus.

We've combined the video room plugin with audio recording and text room plugins

to create an online interview web application. The application seemed to work

fine with only a couple of users.

However, when we started testing and increase the number of users we saw CPU

spikes in both users' pc and our server.

In detail, the server's CPU usage has increased by over 30% even with only 6

users. And each time we add more users we see exponential growth and when the

number reaches up to 10, the CPU goes crazy, and even after disconnecting all the

users, the server doesn't seem to realize this. At this point, the only way

to stop the server is to shut down.

We've been using a regular pc server (intel i5, ubuntu 18.04) for mere

testing and are planning to use a better server in the near future.

The problem, however, is that we have no idea if these CPU spikes are normal and

solely have to do with our server's poor performance.

Because if not, this issue will continue even with a better server.

We've already checked our Libnice and made sure that we're using the latest

version.

We've found that 'hloop' is the main process consuming most of our CPU. (This may

be related to ICE but we don't know exactly how.)

Also, we've already removed the limit on the number of participants.

Any help will be greatly appreciated.

(At least, we want to know whether this issue is due to our server's lack of

capacity or the way we made our application.)

Thank you!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...