On running the attached test programs (one producer on a topic, one consumer on a topic), the consumer eventually encounters OutOfMemoryError after receiving around 64 MB of messages). Default JVM heap size is used (64 MB).
The problem does not happen with RC2 build.
The test programs allows specification of message payloads of different sizes and different message rates, as well number of producer/consumer threads/instances., topics and topic connection factories, via user environment variables.
http://www.nabble.com/4.0+Consumer+OutOfMemoryError+bug--t1707655.html#a4660556