Skip to main content

Multithreaded container .... please check this out.

10 replies [Last post]
mranga
Offline
Joined: 2003-06-06
Points: 0

Hi all!
Francesco and I added multiple event queues to the router. Please take a look at EventRouterImpl.java The TCK does not work for concurrent tests so I cannot test the changes yet but a visual inspection is of value.

Tim, if you have the time, your input would be appreciated.

Ranga

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mranga
Offline
Joined: 2003-06-06
Points: 0

Hi Joel,

There is one thread per activity so you dont need multiple stacks. Depends how you design your application ( sbb/ service ) of course but it should be possible to test multi threading if your app calls for multiple activities concurrently.

Ranga

ivelin
Offline
Joined: 2003-07-13
Points: 0

nijie8 made a good post to the old forums, which might go unnoticed:
https://mobicents.dev.java.net/servlets/ProjectForumMessageView?forumID=...

Any takers to create a quick HOWTO page on the Mobicents wiki? The forum post already has the examples, so a brief overview and pointers to them will do fine.

Ivein

mranga
Offline
Joined: 2003-06-06
Points: 0

We've run into some nasty cases where our multi-threading solution does not work. Fran has a work around worked out (in the process of implementing) and hopefully will commit in the next week.

Ranga.

joel67
Offline
Joined: 2005-07-06
Points: 0

hello Ranga,

>Unfortunately no. Some of the tck test cases do test for >concurrency so its partially tested. To enable >mutltithreading, go to EventRouterImpl.java and set >SINGLE_THREADED = false ( this is a constant). It is >checked in with the constant set to true.

We have to test mutltithreading to a single and to multiple ip addresse (==> multiple SipStack), you dont think so ?

regards,
Joel

leondo
Offline
Joined: 2005-01-18
Points: 0

I have used SIPp load generator to test the SIP RA and SLEE container, I would happy to run again to see what are the differences in term of the performance.

Leon Do

mranga
Offline
Joined: 2003-06-06
Points: 0

If you have a multiprocessor platform, that would be good. Please cvs update. We fixed a few bugs just now.

Ranga

timfox
Offline
Joined: 2004-10-30
Points: 0

Sure - I'll take a look. Give me a couple of days.

Sorry - I haven't been watching the forum since it moved - I need to resubscribe.

-Tim

joel67
Offline
Joined: 2005-07-06
Points: 0

Hello,

Is the some Multithreaded client checked in CVS we can use to test the container ?

regards,
Joel

mranga
Offline
Joined: 2003-06-06
Points: 0

Hi Joel, Tim,

Unfortunately no. Some of the tck test cases do test for concurrency so its partially tested. To enable mutltithreading, go to EventRouterImpl.java and set SINGLE_THREADED = false ( this is a constant). It is checked in with the constant set to true.

It would be a great contribution if you can think of load test cases that test multithreading. For this we need to support concurrent activities. The TCK does not support running multiple tests in parallel. I suggest doing so with the SIP RA and SIP Proxy. Handling multiple concurrent calls using a call generator would be an excellent real world test case and we can also report some throughput and latency figures using this ( the bottleneck in this case may be the SIP RA :-) )

Would you like to take this on as a task ?

Ranga

joel67
Offline
Joined: 2005-07-06
Points: 0

Hello Ranga,

>It would be a great contribution if you can think of load >test cases that test multithreading. For this we need to >support concurrent activities. The TCK does not support >running multiple tests in parallel. I suggest doing so >with the SIP RA and SIP Proxy. Handling multiple >concurrent calls using a call generator would be an >excellent real world test case and we can also report >some throughput and latency figures using this ( the >bottleneck in this case may be the SIP RA )

First of all, and not a SIP specialist, but that's not needed for that, right ?

I checked out all the mobicents stuff, and i want to begin to play with. And i looked for some "basic example" and some multithreaded test.

I think we will take a look a the TCK (deep in the code if needed), and show how we can simply run multiple tests in parallel.

Ranga