Instructions
============

1. Open [OBS_HOME] \ webapps \ obs \ WEB-INF \ web.xml and change the Range 2 parameter from "127.0.0.1-127.0.0.1" to "0.0.0.0-255.255.255.255"

    <filter-name>Debug</filter-name>
    <filter-class>com.ahsay.obs.www.IPFilter</filter-class>
    <init-param>
      <param-name>Range1</param-name>
      <param-value>localhost</param-value>
    </init-param>
    <init-param>
      <param-name>Range2</param-name>
      <param-value>127.0.0.1-127.0.0.1</param-value>
    </init-param>
  </filter>
 
2. Open [OBS_HOME] \ bin \ startup.sh (or startup.bat) and increase the -Xmx parameter to 1024m (e.g. -Xmx1024m)
3. Open [OBS_HOME] \ conf \ server.xml and change all instances of maxThreads="500" to maxThreads="4000" 
4. Restart OBS  
5. Enable the OBS [Server Configuration] -> [Enable Free Trial Registration] option
6. Run [OBM_HOME] \ bin \ RunOBM.bat (must use v5.2.2.4 or above) and logon to an OBS server
7. Create a dummy backup set using OBM
8. Open [RunStressTest.bat] (this file contains the backup sets to be created for stress testing purpose on OBS) with Notepad and update the following values:

[BSET_ID] 		= BackupSet ID of the dummy set you have just created
[TO_DIR]		= A temporary directory to use
[HOST]			= Hostname of OBS
[PORT]			= HTTP Port number of OBS (or try HTTPS port if it doesn't work)
[USERNAME]		= Login name of a backup account
[PASSWORD] 		= Password of a backup account
[NUM_OF_BSET]	= the number of backup set for each user to run 
[NUM_OF_USER]	= the number of user to create, new user will be named in consecutive sequence 
				  after [USERNAME] above , e.g. user1, user2, user3

9.  Double-click [RunStressTest.bat] to start stress testing

Additional Notes
================

If you are running stress tests with more than 1000 connections, please open [OBM_HOME] \ bin \ RunStressTest-UploadTestBlock.bat and increase the -Xmx parameter to 4096m (e.g. -Xmx4096m). (you need to use x64 OBM to use heap size up to 4096MB)