Skip to content

lukas-krecan/server-threads

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

server-threads

Experiment with Java Servlet threads and async servlets. It is possible to start the server using mvn jetty:run.

Then it's possible to visit address http://localhost:8080/threads/async?max=100 to test asynchronous behavior and http://localhost:8080/threads/sync?max=100 to test synchronous (please note that by default Jetty will not create more than 200 threads. Logs are written to /tmp/server.log.

To configure Maven memory usage, use MAVEN_OPTS, for example MAVEN_OPTS='-Xmx2048m -Xms2048m'.

Otherwise feel free to create WAR using mvn package and deploy it to a server of your choice.

For higher number of connections you have to play with the server configuration and operation system ulimits. Sample jetty configuration is included.

About

Experiment with Java Servlet threads and async servlets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages