More tweaking for stupid travis

This commit is contained in:
jamesagnew 2016-01-08 08:26:53 -05:00
parent b717c1f0c3
commit bf2e12e22c
2 changed files with 17 additions and 3 deletions

View File

@ -296,7 +296,8 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<runOrder>alphabetical</runOrder>
<argLine>-Xmx1324m</argLine>
<!--<argLine>-Xmx1324m</argLine>-->
<argLine>-Xmx600m -XX:+HeapDumpOnOutOfMemoryError</argLine>
</configuration>
</plugin>
<plugin>

View File

@ -44,13 +44,26 @@ public class WebsocketDstu21Config implements WebSocketConfigurer {
@Bean(autowire = Autowire.BY_TYPE)
public WebSocketHandler subscriptionWebSocketHandler() {
return new PerConnectionWebSocketHandler(SubscriptionWebsocketHandlerDstu21.class);
PerConnectionWebSocketHandler retVal = new PerConnectionWebSocketHandler(SubscriptionWebsocketHandlerDstu21.class);
return retVal;
}
@Bean(destroyMethod="destroy")
public TaskScheduler websocketTaskScheduler() {
ThreadPoolTaskScheduler retVal = new ThreadPoolTaskScheduler();
final ThreadPoolTaskScheduler retVal = new ThreadPoolTaskScheduler() {
private static final long serialVersionUID = 1L;
@Override
public void afterPropertiesSet() {
super.afterPropertiesSet();
getScheduledThreadPoolExecutor().setExecuteExistingDelayedTasksAfterShutdownPolicy(false);
getScheduledThreadPoolExecutor().setRemoveOnCancelPolicy(true);
getScheduledThreadPoolExecutor().setContinueExistingPeriodicTasksAfterShutdownPolicy(false);
}
};
retVal.setThreadNamePrefix("ws-dstu21-");
retVal.setPoolSize(5);
return retVal;
}