mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-16 18:05:19 +00:00
More tweaking for stupid travis
This commit is contained in:
parent
b717c1f0c3
commit
bf2e12e22c
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user