Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Server_Extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
BigDataViewer_Server_Extension
Commits
f5afe529
Commit
f5afe529
authored
10 years ago
by
Tobias Pietzsch
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/bdv/server/BigDataServer.java
+3
-2
3 additions, 2 deletions
src/main/java/bdv/server/BigDataServer.java
with
3 additions
and
2 deletions
src/main/java/bdv/server/BigDataServer.java
+
3
−
2
View file @
f5afe529
...
...
@@ -83,7 +83,7 @@ public class BigDataServer
final
String
thumbnailsDirectoryName
=
getThumbnailDirectoryPath
(
params
);
// Threadpool for multiple connections
final
Server
server
=
new
Server
(
new
QueuedThreadPool
(
10
00
,
10
)
);
final
Server
server
=
new
Server
(
new
QueuedThreadPool
(
2
00
,
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment