Home skin

 

  Location : TOP > Usage
> Server mode
 
     
  Step1 Startyp TG in server mode@Server.A
Step2 Startup TGC@Server.B
Step3 Connect to TG on remote node@Server.B
Step4 Disconnect from remote TG@Server.B
 
     
  >> TOP  
 
   

 

 

 

 

This chapter describes the setting method of arranging TG and TGC in a different node, and operating TG from TGC remotely. It assumed that TG is running on "Server.A" and TGC is running on "Server.B" as follows.

 
 

 

  Step1 - Startup TG in server mode. (on Server.A) -

Startup TG in server mode on Server.A. On windows platform, execute "tg.bat" batch file with "-server" option.

 
* for Windows platform
C:\> cd tg08X
C:\tg08X> tg -server
 

 

On Unix and Linux platform, execute "tg.sh" shell script with "-listenr" option. If you want to run TG in the background, put "&" at the end of command line.

 
* for Linux or UNIX platform
$ cd tg08X
$ ./tg.sh -server &
 

 

When following messages are displayed, The startup of TG is completed. By default, TG is listening at the port "11111" and waiting the connection from TGC. If you want to change the port number, startup TG with "-port <port-number>" option.

 

TG - Transaction Generator - [ Version 0.8X ] Wed May 03 23:32:47 JST 2006

Loading configration file... OK.
Registerd transactions:2 , variables:2 , jobs:5

Loading Oracle JDBC driver... OK.

Checking specified address & Port is possible to use... OK.
Now TG is running in "SERVER_FOR_TERMINAL".
- Listening Address : 0.0.0.0
- Port : 11111
if you forcely terminate this program , press "CTRL+C" in this console,
or kill TG process.

 

 

  Step2 - Startup TGC (on Server.B) -

Startup TGC on Server.B.

 
* COMMAND-LINE SAMPLE
C:\> cd tg08X
C:\tg08X> tgc
 

 

When the startup of TGC has completed, TGC startup TG on local node and connect to it. But, using TG on remote node, this local TG is not necessary. Click "TG" menu and select "Shutdown TG", shutdown local TG server.

 
 

When local TG server has been terminated, the following message is displayed.

 

TG> terminate
bye.

 

 

You can prohibit the auto startup of TG. Click "TG" menu and select "Startup local TG server automatically", remove the check.

 
 

 

  Step3 - Connect to TG on remote node. -

Click "TG" menu and select "Specify and connect TG...".

 
 

 

On "Specify and connect to TG..." window, specify the hostname and the port number ( Default : 11111 ) where TG is running, and push "OK" button.

 
 

 

When TGC has connected to TG successfully, following messages are displayed.

 

TG - Transaction Generator - [ Version 0.8X ] Sat Jun 16 01:06:00 JST 2007
logged in.
TG>

 

After the connection has been established, You need not consider TG is running on a remote node.

 

  Step4 - Disconnect from remote TG -

If you want to disconnect from remote TG server, Click "TG" menu on the main window of TGC, and select "Disconnect from TG". By the way, when the session between TG and TGC is broken, TG will be still running.

 
 

When TGC has disconnected from TG successfully, following messages are displayed.

 

TG> exit

 

 

If you want to terminate remote TG server, Click "TG" menu and select "Shutdown TG".

 

 

 

     
  >> TOP > Usage
> Server mode
 

 

 

 
 

 

 
 
Copyright 2003 - 2009 tgmstr. All rights reserved.