Erlang/OTP Forums

Author Message

<  Open Telecom Platform (OTP)  ~  genserver load testing

louallen
Posted: Tue Oct 20, 2009 3:34 am Reply with quote
Joined: 20 Oct 2009 Posts: 3
Hello everyone,

First time posting here. Sorry if this has been asked before but I couldn't find it using the google search here.

What I wanted to ask is what program do you use to load test gen servers. I know that eunit is for unit testing but I need to see the max load the gen servers can handle. I currently use Tsung to load test webmachine but sadly, I do not think I can use it for genservers. What do you people use?
View user's profile Send private message
francesca
Posted: Wed Oct 21, 2009 10:20 am Reply with quote
Joined: 19 Jun 2007 Posts: 1
louallen wrote:
I currently use Tsung to load test webmachine but sadly, I do not think I can use it for genservers. What do you people use?


We didn't use any existing tool. We wrote a loader application that reads a xml file where we configured number of users, duration of the test, scenarios to run (with their weight)...
The application simulates load by spawning a process for each user and then executing the configured scenario. Some of the scenario instructions are forwarded to a separate application that implements specific code to run.

I don't know what you want to test, but probably you can implement something simple as spawning several processes that make calls/casts to the gen_server and just check its message queue. As long as the queue doesn't build up the gen_server can handle the load.
View user's profile Send private message
louallen
Posted: Thu Oct 22, 2009 2:31 am Reply with quote
Joined: 20 Oct 2009 Posts: 3
Ah, thanks for that information. I think that is the perfect answer to what I was looking for. Very Happy

Thanks,
Lou
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum