Hello
Please set parserThreadPoolSize to number of cpu cores you have on your server.
poolSize in mms set to 100.2K mgcp requests means it should be capable to handle around 200K messages per second , thats not something that is possible.
As it looks like you brought the memory to limits which caused mms to froze for 8 seconds , after that some resources where freed and it continue to work.
Please do not try to use "CRAZY NUMBERS" since it will not lead to anything good.Each server has it resources limit and you can not grow beyound them.
Let me know if the error occures again with poolsize=100.
Now about mgcp client :
You confirmed that message simply disappeared between reading it from wire ( which was confirmed ) and parsing it.so its not the load issue but some client bug which should be found.
after reading data from wire , it gets packet representation and puts it to queue. then parsing thread takes it from queue and sends its to message handler. message handler calls piggyDismount and then prints header.
the only thing i suspect currently is piggyDismount function which has try finally without catch clause.
In any case i would request from you the following :
1) I need you to log hex data 3 times , first time before if case
https://code.google.com/p/mediaserver/source/browse/client/mgcp/driver/src/main/java/org/mobicents/protocols/mgcp/stack/JainMgcpStackImpl.java#361here you should print receive buffer content
second time before offering it to queue
https://code.google.com/p/mediaserver/source/browse/client/mgcp/driver/src/main/java/org/mobicents/protocols/mgcp/stack/JainMgcpStackImpl.java#368here you should print pr.getRawData()
third time when taking from queue :
https://code.google.com/p/mediaserver/source/browse/client/mgcp/driver/src/main/java/org/mobicents/protocols/mgcp/stack/JainMgcpStackImpl.java#493here you should change while content to following :
PacketRepresentation pr=waitingQueue.take();
log pr.getRawData();
messageHandler.schedulerMessages(pr);
2) in MessageHandler class , piggyDismount function you have try finally clause , please add to it catch(Exception e) and log error if it occures.
Hope this will help us to find the problem with missing packets.
Let me know if you have some questions.
Best regards
Yulian Oifa