[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
PermSpace out of memory error while using TSA for caching  XML
Forum Index -> Terracotta Platform
Author Message
namratag

master

Joined: 01/31/2011 06:38:45
Messages: 98
Offline

Hello,

I have ~200 unit tests and integration tests for our application. We were using RMI EhCache before and all the unit tests were used to run fine on our build machine.

We have recently migrated to using terracotta server for caching solution and since then we started seeing PermSpace out of memory error. We have increased the JVM memory space using java options but we still keep hitting lot of memory issues. Is anyone else facing memory issues with terracotta enabled for caching?
ssubbiah

jedi

Joined: 05/24/2006 14:25:22
Messages: 117
Location: Saravanan Subbiah
Offline

How are you spawning the servers (L2) and clients (L1) in your unit test ? If you are spawning a new L1 for every test while reusing the same JVM, I can see how you might run out of perm gen. This is probably just a test setup issue.

Can you try running each test as a separate test, spawning a new VM everytime ? The other thing to try is not spawn a new L1 but reuse the same L1 and run each test within the same L1. Dunno if thats possible with your test setup.

You could look at how the tests are setup in our source repository. We spawn L2s externally and run most tests individually in their own VM.




Saravanan Subbiah
Terracotta Engineer
namratag

master

Joined: 01/31/2011 06:38:45
Messages: 98
Offline

Thanks for the reply. Could you please point me to the location of example of one of your tests setup in source repository?
ssubbiah

jedi

Joined: 05/24/2006 14:25:22
Messages: 117
Location: Saravanan Subbiah
Offline

You can find some examples in this project.

https://svn.terracotta.org/repo/forge/projects/terracotta-ehcache/trunk

Tests could be found under system-tests/src/test/java/org/terracotta/ehcache/tests . One such test is CacheConsistencyTest

Hope that helps.

Saravanan Subbiah
Terracotta Engineer
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team