hikalkan / scs

TCP Server/Client Communication and RMI Framework
MIT License
225 stars 112 forks source link

The problem of remote method invocation #21

Open Jeongwonkyu opened 7 years ago

Jeongwonkyu commented 7 years ago

Hi ~ I had some test with your scs about RMI. The client can request historical data to server then this data size is 13,000 bytes ~ 140,000 bytes almost. After client request data several times, server memory is increase every time client call method and die.

Did you have a test about this case ?

hikalkan commented 7 years ago

You say there is a memory leak. I used SCS for very long running processes (not restarted for months) but I didn't see such a problem. This maybe related to garbage collecter which collects object periodically. So, when you call a method it's normal to increase memory and not decrease for a time. Did you tested it for long time to understand if really have a memory leak problem.

Jeongwonkyu commented 7 years ago

Thank you ~ I solved this problem. I found out some problems that related to GC.

And I have one more question ~ it doesn't support the duplicated method name in service ? I wanna use some override functions

hikalkan commented 7 years ago

No, it does not support it (because it does not send argument types to find the override). Please use different naming.