I migrated that app to JBoss 7.1.0. Output truncate bug is still there,
but far less % of requests fails. Also throughput speed significantly
improved.
Concurrency Level: 20
Time taken for tests: 1.207 seconds
Complete requests: 9000
Failed requests: 3160
(Connect: 0, Receive: 0, Length: 3160, Exceptions: 0)
Write errors: 0
Total transferred: 37477920 bytes
HTML transferred: 36001920 bytes
Requests per second: 7455.94 [#/sec] (mean)
It looks like Tomcat bug most likely because both jboss and glassfish
are using Tomcat as servlet container.