Please post your jboss version, there were many bugs in topics
the early jboss3.0 releases
Also this question has been asked many times before.
Use search on MessageCache or HighMemoryMark
Sorry i forgot
Jboss version 3.2.2
And thx for the search tips
Just look in docs/examples/jms
for configuring the persistant mechanism
I now know what the actual problem was.
When deploying a MDB to a durable topic a client-id was created. I did not specify a client id in the jboss.xml so every time a new id was created.
Since it is a durable subscription everytime i deployed the same MDB a new client id was added and the old ones remained.
This meant that all messages where persisted because my old mdb's were not consuming them.
Maybe this will help some other stupid guy in the future.