PDA

Ver la Versión Completa : Arrancar y parar sólo la parte Java.


southern
02/12/08, 10:33:08
Holas, alguien sabe como arrancar y parar solo la instancia java, sin tener que parar la instancia ABAP. (Siempre lo hago juntas con startsap y stopsap.)

Grachie

jgsanz
02/12/08, 11:05:04
Transacion SMICM: menu administracion y ya lo que quieras

creo que es eso lo que buscas

Alen
02/12/08, 12:23:26
No tendras problemas con lo q dice jgsanz pero para la próxima.....
http://help.sap.com/saphelp_nw04/helpdata/en/a2/6052bb98033c4dbef5df04f68b0c7e/frameset.htm
Espero te sirva.;)

koletas
04/12/08, 14:07:01
Siempre antes de nada busca en sdn.sap.com y en help.sap.com, muchas dudas están ahí y además gratis.
Lee este link con un ejemplo: Starting and Stopping the J2EE Engine
http://help.sap.com/saphelp_nw70/helpdata/DE/6e/dd0041aafdf123e10000000a155106/frameset.htm

koletas
04/12/08, 14:11:39
Usando el jcmon:

http://help.sap.com/saphelp_nw70/helpdata/EN/27/ff074152aff323e10000000a155106/frameset.htm.

Monitoring – JCmon Locate the document in its SAP Library structure
Use

The JCmon is a native monitoring program, part of the startup and control framework, which can be used to:

· Display a list of the processes

· Enable, disable, and restart the specified processes

· Shutdown a specified J2EE instance

· Enable/disable debugging for a specified process

· Dump stack trace

· Display a list of the ports used by the J2EE Engine
· Activate/deactivate debug sessions
· Increment/decrement the trace level
To start the JCmon, execute the jcmon script file from the /usr/sap/<SID>/<INSTANCE NAME>/j2ee/os_libs directory, where <SID> is the system ID of the cluster (for example, C11) and <INSTANCE NAME> is the instance name of the J2EE instance (for example, JC00). The instance name consists of a prefix (JC or J) and the two-digit instance number afterwards. As parameter for the jcmon script file specify the SAP instance profile:

This graphic is explained in the accompanying text
jcmon pf=/usr/sap/<SID>/sys/profile/<SAPSID>_<INSTANCE_ID>_<HOST>.

Example:
jcmon pf=/usr/sap/C11/sys/profile/C11_JC00_testpc.

Enter command ‘20’ to display the main menu.
Features

The JCmon main menu provides the following functions:
0: Exit
Returns back to the main menu.

1: Refresh list
Refreshes the process list and the menu.

2: Shutdown instance
Invokes the shutdown of the specified J2EE instance.

3: Enable process
Enables and starts a process, which is switched off. (Restart == no)

4: Disable Process
Stops a running process and switches off the restart flag.

5: Restart Process
Restarts the specified process.

6: Enable bootstrapping on restart

7: Disable bootstrapping on restart

8: Enable Debugging
Checks if the specified process is running in debug mode. If not and the process is configured for debugging, JControl will restart the process in debug mode.

9: Disable Debugging
If the process is running in debug mode, JControl will restart the process and switch off the debug mode.

10: Dump stack trace
The specified process gets an event to invoke the dump of the stack trace of the Java VM. The stack trace is stored in the stderr<n> output file in the work directory.

11: Process list
Displays the status and additional information about all the processes.

12: Port list
Displays a list with detailed information about the ports used by the J2EE Engine.

13: Activate debug session
Activates the debug session for the specified process. To activate a debug session:
· The process must be running in debug mode.
· The process must be “Load Balance Restricted”.

14: Deactivate debug session
Deactivates the debug session. The process will be restarted or stopped – this depends on the process configuration.

15: Increment trace level
This increments the trace level for the developer trace file of the specified process (dev_<component name>)

16: Decrement trace level
This decrements the trace level for the developer trace file of the specified process (dev_<component name>)

17: Enable process restart
18: Disable process restart
-----
98: Synchronize instance properties
99: Extended process list on/off

Activities
For more information, see:

· Checking that all processes are running
· Restarting a single process

koletas
04/12/08, 14:14:11
Más ejemplos por si alguna vez lo necesitáis, aquí ose mando un par de formas de parar/reiniciar la parte JAVA. Desde Netweaver Administrator puedes parar los server, el dispatcher, el SDM, aplicaciones, servicios; pero no todo el servidor J2EE.

• Desde ABAP se que se puede hacer así:
Solution 1: Overview of the Process for Starting and Stopping a SAP Web AS Java

Task: Starting and Stopping with SMICM

1. Stop the Java instances using transaction SMICM.

a) Log on to the central instance of your SAP system. Start transaction
SMICM. Navigate through the menu Administration ? J2EE Server

? Send Hard Shutdown ? Without Restart.
Si se usa Hard Shutdhown, es lo mismo que lanzar sobre el proceso un kill -9

• Desde S.O. lo puedes hacer con jcmon, es un script con un menú de opciones. Lo puedes llamar así:

jcmon pf=<perfil de instancia con el path>
jcmon pf=/usr/sap/<SID>/SYS/profile/<SID>_DVEBMGS02_hostname


Creo que con esto está todo completo y no hay más opciones, bueno con un telnet a la parte java o con las herramientas de SAP para java, no se si el VA o el configtool.