Skip to content
Snippets Groups Projects
Commit f5afe529 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

use smaller threadpool for server to avoid running out of file descriptors

parent 6099ec56
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ public class BigDataServer
final String thumbnailsDirectoryName = getThumbnailDirectoryPath( params );
// Threadpool for multiple connections
final Server server = new Server( new QueuedThreadPool( 1000, 10 ) );
final Server server = new Server( new QueuedThreadPool( 200, 8 ) );
// ServerConnector configuration
final ServerConnector connector = new ServerConnector( server );
......@@ -186,7 +186,7 @@ public class BigDataServer
// create Options object
final Options options = new Options();
final String cmdLineSyntax = "BigDataServer [OPTIONS] [NAME XML]...";
final String cmdLineSyntax = "BigDataServer [OPTIONS] [NAME XML] ...\n";
final String description =
"Serves one or more XML/HDF5 datasets for remote access over HTTP.\n" +
......@@ -299,6 +299,7 @@ public class BigDataServer
catch ( final ParseException | IllegalArgumentException e )
{
LOG.warn( e.getMessage() );
System.out.println();
final HelpFormatter formatter = new HelpFormatter();
formatter.printHelp( cmdLineSyntax, description, options, null );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment