Last updated May 14, 2009 07:26, by Igor Minar
Feedicon  

grizzly-sendfile-server

grizzly-sendfile-server is a very lightweight, yet high performance webserver based on grizzly-sendfile.

Usage

 java -jar grizzly-sendfile-server.jar [<options>] <path>
 
  path: path to a directory that contains files that should be served by the server
 
 Options:
   -h --help: this help
   -a --algorithm: algorithm to use (full class name)
   -p --port: port to listen on
   -m --mode: grizzly-sendfile mode. Can be auto-sendfile (default), servlet or grizzly
   -t --thread-count: number of worker threads. default=50
   -b --buffer-size: size of the buffer in bytes. default=0


Example Usage

 $ java -jar grizzly-sendfile-server-0.3.jar -p 7700 /var/tmp/grizzly-sendfile/test-files/
 May 14, 2009 12:21:08 AM com.igorminar.grizzlysendfile.SendfileFilter <clinit>
 INFO: initializing grizzly-sendfile...
 grizzly-sendfile configuration: 
   algorithm:                com.igorminar.grizzlysendfile.algorithm.EqualBlockingAlgorithm
   thread count:             50
   buffer size:              0
   idle conn. timeout:       30000
   auto-sendfile mode:       on
   auto-sendfile URI prefix: /
   auto-sendfile file dir:   /var/tmp/grizzly-sendfile/test-files/
   allowed paths:            /var/tmp/grizzly-sendfile/test-files/* (regex: /var/tmp/grizzly-sendfile/test-files/.*)
                        
  plugins:                  
 May 14, 2009 12:21:08 AM com.igorminar.grizzlysendfile.server.GrizzlySendfileServer start
 INFO: grizzly-sendfile server started on port 7700
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close