users@grizzly.java.net

OutOfMemoryError with tunnel sample

From: Sam Crawford <samcrawford_at_gmail.com>
Date: Mon, 28 Nov 2011 21:24:06 +0000

Hello,

I'm attempting to run a basic throughput benchmark of the TunnelServer
sample (http://java.net/projects/grizzly/sources/svn/content/branches/2dot0/code/samples/framework-samples/src/main/java/org/glassfish/grizzly/samples/tunnel/TunnelServer.java)
and I'm running into an OutOfMemoryError after ~5 seconds.

I'm running the TunnelServer sample (unmodified, apart from the
host/port) in Eclipse, with JVM parameters -Xmx1024m
-XX:MaxPermSize=256m. I'm using Grizzly 2.1.7

The test is being conducted with iperf across a gigabit network.
Commands used are below:

Server: iperf -s -i 1
Client: iperf -t 90 -i 1 -c grizzlytunnel.example.com

Any suggestions would be appreciated.

Thanks,

Sam