On Thu, Jul 3, 2014 at 12:04 PM, João Sávio <joaosa...@gmail.com> wrote:

> Hello!
>
> Using NIO (with channelSendOptions="4", i.e., synchronous), with lightly
> load, my tests pass 100%. But, on heavy load, not all sessions are
> replicated on time,
>

Define "on time".


> and I have about 20% of errors.
>

Can you explain the errors more?  Stack trace?


> If I increase maxThreads to 400, I have about 15% of errors.
>
> More information:
> * I am not performing parallel requests with same session
> * my cluster has 4 nodes (all in one machine - for test purpose only)
> * Java 7 64 bits, Tomcat 7.0.52, windows 7 64 bits
> * using default NIO configuration, but with maxThreads=400
> * VM options:
> -Xms512M   - on real environment this value is 1024
> -Xmx512M  - on real environment this value is 1024
> -XX:NewSize=450M
> -XX:MaxNewSize=450M
> -XX:PermSize=128M
> -XX:MaxPermSize=245M
> -XX:SurvivorRatio=8
> -XX:TargetSurvivorRatio=90
> -XX:MaxTenuringThreshold=15
> -XX:+UseBiasedLocking
> -XX:CMSInitiatingOccupancyFraction=60
> -XX:+UseCMSInitiatingOccupancyOnly
> -XX:+CMSClassUnloadingEnabled
> -XX:+UseConcMarkSweepGC
> -XX:+CMSIncrementalMode
> -XX:+UseParNewGC
>

You have quite a few JVM settings configured here.  No criticism to this, I
assume that you've not copy and pasted these from the internet and have
thoroughly tested each one.  I'm just mentioning this because I often see
people do this and it usually backfires.  Just curious if you've tried
things without all of these customizations.  Perhaps with just some basics
like -Xms, -Xmx and gc logging?


> -XX:+DisableExplicitGC
> -XX:+PrintGCDateStamps
> -XX:+PrintGCDetails
> -Xloggc:%CATALINA_BASE%/logs/tomcat-gc.log
>
> Moreover, I'm trying to attach the logs again.
>

The list doesn't like attachments.  On some rare occasions it'll accept
them, but it's generally better to inline the logs.  Also some people,
myself included, are paranoid and don't open attachments from people they
do not know.

Dan

Reply via email to