I have the video chat project with only a red 5 server.
Now, I need to expand server and share their memory between the server with terracotta, but I have no idea how to implement and configure terracotta without edit red 5 server code.
If there is no solution that doesn't edit red 5 server code, I would like to know the step by step solution that edit red 5 code
You can use Terracotta BigMemory Max which provides upto 8 Gb free distributed in-memory.
BigMemory is as easy as adding a JAR file and changing as few as 2 lines of configuration. Since BigMemory uses Ehcache’s get/put API — the Java de facto standard — it typically doesn't require changes to your code. Check out the Getting Started guides.
http://terracotta.org/documentation/bigmemorymax/get-started