0% found this document useful (0 votes)
221 views62 pages

SAP S4 HANA - JAVA Architecture - Sys Admin - Day 4

The document provides an overview of the SAP AS Java architecture and processes. It describes the key components of AS Java including the dispatcher, server processes, Java message service, and Java enqueue service. It also discusses dual stack systems and how requests are processed in AS Java from the dispatcher to the server processes and managers/services.

Uploaded by

amar nalla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
221 views62 pages

SAP S4 HANA - JAVA Architecture - Sys Admin - Day 4

The document provides an overview of the SAP AS Java architecture and processes. It describes the key components of AS Java including the dispatcher, server processes, Java message service, and Java enqueue service. It also discusses dual stack systems and how requests are processed in AS Java from the dispatcher to the server processes and managers/services.

Uploaded by

amar nalla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 62

SAP S/4 HANA

Introductory Training
Program
DAY 4 – Introduction to AS JAVA Architecture &
Processes

Prapred By Ramesh K 22 June 2020


Day 4 : Agenda

 AS JAVA Architecture & Processes


 Transaction Processing in AS JAVA
 Startup/Shutdown in AS JAVA
 System Administration in AS JAVA
 Exercise & Break Out Session

22 June 2020
AS JAVA Architecture
&
Processes

22 June 2020
Netweaver Architecture

• The Application server JAVA is a usage


type of the SAP Netweaver platform
• The AS JAVA has a dedicated database
schema
• AS JAVA can coexist with AS ABAP
systems in what is known as Dual stack
architecture
• In dual stack systems , there is only 1
database instance , but there are 2
schemas one each for ABAP and JAVA

22 June 2020
SAP AS JAVA Instance
Application
Instance

Central
Central Dialog
Services
Instance Instance
Instance

Type of Application Server Instance Name Name of Processes


Central Instance Software Deployment
Manager(SDM) , Dispatcher
JAVA Application Server
Central Services Instance Message Server , Enqueue Server

Dialog Instance JAVA Server Processes

Each SAP system can have only 1 Central Instance , 1 Central Services Instance and only 1 Database instance. It can
have any number of additional dialog instances

22 June 2020
AS JAVA Process Overview

22 June 2020
Summary of AS JAVA Processes
The following processes exist in AS Java:

• The dispatcher distributes incoming requests to the server processes.


• The server process executes the Java applications. Every server process is multi-
threaded and can thus process a large number of requests in parallel (in contrast to the
ABAP work processes).
• For each dispatcher there is at least one server processes and there can be up to 16
server processes.
• The Java message service manages a list of Java dispatchers and server processes. It is
responsible for the communication within the Java runtime environment.
• The Java enqueue service manages logical locks that are set by the executed Java
application program in a server process.
• The Software Deployment Manager (SDM) is the standard tool used to install Java
software components on the SAP Web AS Java.

22 June 2020
Types of Netweaver Server Configurations

• AS ABAP system: Complete infrastructure in which ABAP-based applications can be developed and
used.
• AS Java system: Complete infrastructure for developing and using J2EE-based applications.
• AS ABAP+Java system: Complete infrastructure in which ABAP-based and J2EE-based applications
can be developed and used. Such a system should only be installed if explicitly required by the
application. For example, SAP NetWeaver PI 7.0 or SAP Solution Manager 4.0
22 June 2020
AS JAVA Architecture

• In AS Java, the central instance is distinguished by the fact that the Software Deployment
Manager (SDM) runs there. The central services Message Service (MS) and Enqueue
Service (ES) run in the central services instance (CS instance). All other instances of the
system are usually called dialog instances.
• Note: The entirety of the Java environment (all processes and the database scheme) is
also referred to a Java cluster, and the individual processes (dispatcher and server) as
nodes of the Java cluster.

22 June 2020
Dual Stack Architecture

22 June 2020
Key architecture principles of Dual stack systems
• The central instance of an AS ABAP+Java system can be recognized by the following
processes: ABAP-MS, enqueue work process and SDM. The central services of the Java
runtime environment (Java-MS, Java-ES) are also provided in the Java central services
instance here. All other instances are usually called dialog instances.
• Since both runtime environments are capable of answering requests via web protocols,the
Internet Communication Manager must now decide whether the request is addressed to
the ABAP or the Java runtime environment. It decides this by means of the URL of the
request. In case of a request to the ABAP runtime environment,for example, the call of an
ABAP web dynpro, the ICM forwards the request to the ABAP dispatcher and the work
processes respond to the request. If the request is a request for the Java runtime
environment, for example, the call of a Java Server Page (JSP), the ICM forwards the
request to the Java dispatcher and one of the server processes responds to the request.
• In an AS ABAP+Java system, data is also kept in separate database schemas (but in the
same database installation). That is, work processes can only access ABAP data and
server processes can only access Java data. In the data exchange, both runtime
environments then communicate using the SAP Java Connector (JCo). This
communication is necessary, for example, if billing data that is stored in the ABAP data
schema is supposed to be displayed in a Java user interface.
• The SAP JCo is integrated into the AS Java and is also used when an AS Java system
has to communicate with a remote AS ABAP system.

22 June 2020
Processing User Requests in Java

• A web browser is the standard user interface for AS Java. A user request for AS Java is
usually an HTTP request that is received by the Java dispatcher. The dispatcher
forwards the processing requests to one of the server processes of “its” instance.

22 June 2020
Details on request processing

• The actual processing takes place in the server process, whereby the user who sent the
request is usually assigned the same server process again for the next request.

• The dispatcher and server processes of AS Java are also called nodes. All processes of
AS Java together with the database schema form the Java cluster. In contrast to the
processes of AS ABAP (excluding the ICM), the cluster nodes of AS Java are
multithreaded. This means that an AS Java process consists of many threads and one
request can be processed in each thread. Hence, one server process always processes
many user requests in parallel.

• To process user requests it is often necessary to read data from the Java schema of the
database or to write to it. To do so, each server process is connected multiple times to
the Java schema of the database via a connection pool (DB pool).

• Once processing is complete, the processing result from the server processes is returned
to the web browser via the dispatcher.

22 June 2020
BREAK

22 June 2020
Transaction Processing
in
AS JAVA

22 June 2020
Manager & Services Concept

22 June 2020
Details on Managers & Services
• The nodes of AS Java are split into different functional modules called managers and
services. The managers form the Java Enterprise Runtime. The Java Enterprise
Runtime provides basic core functions of AS Java. It is also referred to as kernel.Together
with the interfaces and libraries, the services are called J2EE Engine
• Components. The J2EE Engine Components provide programming interfaces (APIs) to
the applications; the applications can then use these APIs to access the AS Java
functions.
• In case of an HTTP requests to the Java dispatcher the Connections Manipulator
Manager holds a connection object with information about the client sending the request.
The request is then forwarded to one of the processes of this instance by the HTTP
provider service using a cluster manager.
• The cluster manager of the server process receives the request and forwards it to the
HTTP provider service.
• In Web Container Service, the presentation logic of the application is then processed.
The web container service provides the processing of servlets and JavaServer Pages
(JSP). The business structure logic of the application is processed in the form of EJB
beans in the EJB Container Service. If, in the processing of the request, data from the
database is required, the JDBC Connector
• Service is used to establish a connection to the database and the data is requested there.
If the same tables contents have already been queried by this server process, the content
can be retrieved in the table buffer at application level (if buffering is allowed for the table).
• The response to the web browser using HTTP is then returned in the same way.

22 June 2020
Transaction Processing in AS JAVA

Graphic Illustration of “ACID” transaction processing

22 June 2020
Open SQL for JAVA

• If the Java program is supposed to be portable, that is, run with a database other than the
one used originally, developers can choose between Open SQL/JDBC, Open SQL/SQLJ,
EJB (Enterprise JavaBeans) and JDO (Java Data Objects). If developers use Native SQL
in the program, they loose the portability and cannot use the table buffer of Open SQL for
Java Frameworks.

22 June 2020
Lock Management

• The lock concept of the database is used in the J2EE standard. So if application
developers make sure that they implement database-independent database accesses,the
application will be portable but will respond semantically different on different database
platforms. For this reason and to improve response times, SAP introduced the concept of
the enqueue service analogous to AS ABAP.
22 June 2020
The JAVA Instance Concept
• SAP NetWeaver Application Server Java takes the instance concept of SAP Basis,
which combines multiple components that are monitored, started, and stopped
together into an administrative unit.
• The following components are part of a Java instance:
– The server processes provide the infrastructure in which the J2EE applications
run.
– The Java dispatcher distributes the client requests to the free server processes
of the instance.
• An instance always runs on one physical server, but there can be multiple instances
on one server. Within an SAP system, an instance is defined using the system ID
(SID) of the SAP system and the instance number. An SAP system consists of a
database and one or more instances. These instances can either be purely ABAP or
Java instances, or instances with ABAP and Java infrastructure.
• The Central Services form a special Java instance. They provide the basis of
communication and synchronization within a Java cluster. The central instance is
another special instance. This runs on a physical server with the Central Services.
• During its installation, the Software Deployment Manager is also installed.

22 June 2020
JAVA Cluster Architecture
• All Java components of an SAP system are known as a Java cluster. A Java cluster
consists of:
– A (central) Java instance with a dispatcher and at least one server process.
– The Central Services, which contain a message server and an enqueue server.
– A database for the central storage of data.
– Optionally, additional Java instances
• A minimal cluster installation and an installation with multiple SAP NetWeaver AS
Java instances are shown as examples in the following figures.

• Cluster with
Minimal cluster Multiple Instances

22 June 2020
Request Processing by the dispatcher
• Client requests to SAP NetWeaver AS Java are received by the Java dispatcher. It
selects a free server process to process the request and creates the connection
between the client and the server process. The dispatcher distributes new incoming
requests to the available server processes using a .round robin. algorithm. If there is
already a connection to the client, the request is forwarded to the server process that
is already processing requests for this client. The individual steps in the processing
of a request are outlined in the following figure.

22 June 2020
Central Services
• The Central Services run on one host and form a separate Java instance. They
consist of the message service and the enqueue service.

• The Central Services provide the basis for communication and synchronization
for the Java cluster:
– The message service administers a list of the dispatchers and the server
processes of the Java cluster. It represents the infrastructure of data
exchange (for small quantities of data) between the nodes involved. In the
case of load balancing between a large number of Java instances, it also
provides the load balancing information for the SAP Web Dispatcher.
– The enqueue service administers logical locks that are set in a server
process by the executed application program. It is also used for cluster-wide
synchronization.

• The Central Services are essentially required when a Java cluster is installed.
They are started on a host with a separate system number and the system ID
(SID) of the entire system. If the Central Services are running, other Java
instances are started with the program JControl (see the unit Starting and
Stopping a SAP NetWeaver AS Java).

22 June 2020
Message & Enqueue Service
• The message service performs the following tasks in the Java cluster:
– Notification of events that arise in the cluster, for example, if a node of the
cluster disappears (due to failure or the instance being shut down), or when
a service is started or stopped.
– Communication between different services
– Forwarding of messages and requests to all participants (broadcast)
– Prepare logon information for the SAP Web Dispatcher
– Support for message server failover
– Guaranteed message transmission
– Exchange of cache information in the cluster

• The enqueue service runs on the Central Services instance of the Java cluster.
It manages the lock table in the main memory and receives requests for setting
or releasing locks. It uses the tried and tested SAP lock concept.
• The enqueue service has the following tasks:
– Internally, it is used for synchronization within the Java cluster
– The applications can lock objects are release locks again. The enqueue
service processes these requests and manages the lock table with the
existing locks.
22 June 2020
Internal Structure of AS JAVA
There are 3 logical levels

• SAP Java Enterprise Runtime - provides fundamental functions of the runtime


environment, such as class loading, cluster communication, management of
configuration data, and so on
• J2EE components - contain interfaces, libraries, and services
• Applications Layer - relates to the applications that are deployed and run in SAP
NetWeaver Application Server Java.

22 June 2020
Services in the AS JAVA
• The services that SAP NetWeaver AS Java provides for processing requests are defined
and configured using “Services”. Service components can access & utilize functions of the
runtime through the Framework API. They are the most important of J2EE components
Service Description
Security Provider Administration of users and groups and authorization administration. Controls
access to resources or applications deployed in SAP NetWeaver AS Java.
Monitoring Allows access to information about the current system status. Provides general
Service and statistical information, among other things, about the nodes in the cluster,
memory utilization, performance, applications, and user connections.
Log Configurator Manages the configuration of the logging and tracing mechanism of SAP
Service NetWeaver AS Java.
Log Viewer Provides an integrated log viewer for displaying log and trace information.
Service
Deploy Service Manages the deployment of Java applications.
EJB Container Manages all Enterprise Java Beans (session beans, entity beans, and
Service message-driven beans), which are executed in the EJB Container of
SAP NetWeaver AS Java.
HTTP Provider Analyzes the URL of inbound HTTP requests, forwards the requests to the
correct module of SAP NetWeaver AS Java for processing, and returns the
responses to the client.
22 June 2020
LUNCH
BREAK

22 June 2020
Startup & Shutdown
Of
AS JAVA Instances

22 June 2020
Startup & Shutdown of AS JAVA Systems

• The startup commands for AS ABAP are also valid for AS JAVA
systems. Except for the option “r3” in startsap/stopsap command line
executable , the option to be used is “j2ee”
• Similar to AS ABAP , both command line and SAP MMC are used for
starting and stopping of AS JAVA systems

Windows OS Unix OS

UNIX shell .

<host>> startsap
( startsap_<host>_<instance no>)

22 June 2020
Sequence of Startup
• The SAP System comprises of Database Instance , Central Services
and finally the multiple Dialog Instances
• The sequence of startup is extremely important. Starting the
processes of sequence will result in an inconsistent state and may
spawn zombie processes on the OS which will have to killed

START SEQUENCE

DATABASE CENTRAL DIALOG INSTANCE


INSTANCE INSTANCE

Message ABAP Work


Server Processes
Enqueue

22 June 2020
Starting AS JAVA Processes

22 June 2020
Stopping AS JAVA in UNIX

• The stopping of an SAP system is performed in reverse sequence. The dialog


instances are always stopped first, and then the central instance.

• For SAP system installations on the Microsoft Windows operating system, the
database is not stopped at the same time. This can be done with the tools of the
relevant database. In the case of SAP system that are installed on UNIX
operating systems, the database is generally stopped at the same time.

22 June 2020
Starting/Stopping of Dual Stack Systems

• During the installation of an SAP system, you can add a Java stack to each ABAP instance. The
instances are started and stopped using appropriate tools at operating system level - such as the
SAP Management Console (SAP MC). Within an instance,the Java stack is controlled by the
ABAP dispatcher. In concrete terms, this means that the start and stop processes are triggered by
the ABAP dispatcher. To do this,the ABAP dispatcher sends a start command to the so-called
Startup and Control Framework. The corresponding Java cluster elements are started using the
Startup and Control Framework.
22 June 2020
Starting/Stopping a pure AS JAVA instance

• Pure Java instances can not be managed by the ABAP dispatcher. The start and
stop processes can be initiated using appropriate operating system commands -
such as the SAP Management Console (SAP MC) or the Microsoft Management
Console (SAP MMC) under Windows as well as the scripts startsap and stopsap
under UNIX.
22 June 2020
Start/Stop Using MMC Console

22 June 2020
Process Information

22 June 2020
Start/Stop using SMICM

22 June 2020
SMICM Details

• In the case of SAP NetWeaver AS ABAP + Java, it is possible to allow the ABAP
stack to continue running, and only stop and then restart the Java stack.

• You do this using transaction SMICM. You can either start/stop the (local)
instance onto which you are logged in the transaction SMICM or start/stop all
the instances in the (global) Java cluster (see figure: Starting and Stopping the
Java Stack of an SAP NetWeaver AS ABAP + Java from the Transaction
SMICM).

• It is not possible, and also not useful, to stop only the ABAP stack and leave the
Java stack started in the case of AS ABAP + Java.

22 June 2020
BREAK

22 June 2020
Start/Stop in UNIX
• For SAP systems that are installed under UNIX, you run the scripts startsap and stopsap
to initiate the start and stop processes. If multiple SAP instances are installed on one
physical server, you add the instance name to the names of the scripts startsap and
stopsap.
• The startsap script can be called with the following options:
– DB: starts the database system
– R3: starts the instances and associated processes for the instance
– J2EE: starts the instances and associated processes for the instance
– ALL: starts the database system and the instance (default setting, can be omitted)
• The stopsap script can be called with the following options:
– DB: stops the database system with the help of the stopdb script
– R3: stops the instances and associated processes for the instance
– J2EE: stops the instances of the SAP system
– ALL: stops the database system and the instance (default setting, can be omitted)
• To start the SAP system, the startsap script calls the sapstart process with the start profile
specified in the script in the variable START_FILES.
• Database and SAP instances can each be individually started and stopped with the
options DB or R3, e.g. startsap R3 DVEBMGS00.
• Caution: The option J2EE can be used in the same way as the option R3. In the case of
SAP NetWeaver AS ABAP + Java, both the ABAP stack and the Java stack are started
and stopped.

22 June 2020
JAVA Startup and Control Framework

22 June 2020
Details on the Framework
• SAP provides a separate Startup and Control Framework for SAP Web Application
Server Java. This Framework is used to start, stop, and monitor the Java stack
processes within the SAP system instances - but not, however, the Central
Services.It consists of the following processes:
• JControl:
– JControl starts, stops, and monitors the processes of a Java instance . Primarily
the server and dispatcher processes. SAP Signal Handling is implemented with
JControl, to forward the start and stop commands to the processes of the Java
stack.
– JControl restarts terminated processes, ends hanging processes, and sends a
shutdown signal to the processes of the Java stack.
– JControl reads the description of the instance from profile files.
– JControl starts the JLaunch processes, which in turn start Java nodes such as
dispatchers or servers.
– JControl creates a shared memory segment for the internal administration data
of all JLaunch processes.
• JLaunch:
– JLaunch starts a Java program, loads a Java VM (JVM) in its own address
space and assumes the function of the corresponding cluster element. The
parameterizing of the JVM is read before the loading.
– JLaunch receives commands from the JControl process (through named pipes)
to stop cluster elements such as dispatchers or servers.
– The JLaunch process ends itself if its parent process JControl is no longer
running.
22 June 2020
AS JAVA Profile Files

• Profile files are first read when a Java instance is started. The JControl process
then reads the files instance.properties and bootstrap.properties.

• The profile files are located on the operating system in the directory
DIR_PROFILE (Microsoft Windows: <drive>:\usr\sap\<SID>\SYS\profile or
UNIX: /usr/sap/<SID>/SYS/profile) and are generated at installation time.

• There are three different profile files:


– Default profile (Default.pfl),
– Start profile (START_<instance>_<host>), and
– Instance profile (<SID>_<instance>_<host>)

22 June 2020
Location in Windows

22 June 2020
Stop process using Startup and Control Framework

• The Signal Handler of JControl receives a stop signal from the stopsap script (UNIX) or from the
Windows Service.
• JControl forwards the signal through named pipes to all running JLaunch processes (Java servers and
dispatchers).
• The JLaunch process of a Java cluster element should react to this notification (soft shutdown) within a
certain period of time. After this time has expired,the JLaunch process is terminated by JControl. When
this is done, the JVM within the JLaunch process is ended, as is the JVM of the JLaunch process.

22 June 2020
JCMON Tool

• The JCmon tool can be used to monitor the JControl process. JCmon is part of the Startup and Control
Framework, and is located in the JControl/JLaunch home directory, that is, in the executable directory
/usr/sap/<SID>/<instance>/SYS/exe/....
• JCmon can be started with the command JCmon pf=<SAP instance profile>.
• JCmon provides an administration interface for elements in the Java cluster that can be called from the
operating system.

22 June 2020
System Administration
In
AS JAVA

22 June 2020
Logs & Trace Files in AS JAVA

22 June 2020
Logs & Trace Files in AS JAVA

• The trace and log files are stored in the work directory of an instance. This
directory is called /usr/sap/<SID>/<instance name>/work (UNIX) and
analogously in the Microsoft Windows environment.
• dev_jcontrol is the trace file for the JControl process. dev_jcontrol is the most
important trace file for problem messages when starting NetWeaver AS Java.
Current messages are written at the end of the file.
• dev_<node name> is the trace file for JLaunch processes. The trace file
dev_<node name> is written for each started JLaunch process, and therefore for
every dispatcher and server process.
• jvm_<node name>.out is the output file for the Java Virtual Machine (JVM). This
JLaunch process represents a Java node such as a dispatcher or a server and
therefore a JVM. The output of a JVM is forwarded to the file jvm_<node
name>.out in the work directory of a Java instance.
• std_server<X>.out and std_dispatcher.out are the default output files for the
started managers and services of the the corresponding nodes.

• For all of the log files listed above, you will also find log files in the workdirectory
• with the ending .old, which can also often be used for troubleshooting.

22 June 2020
Administration & Configuration Tools in AS JAVA
• SAP Netweaver Administrator
• Visual Administrator
• Config Tool
• Shell Console

22 June 2020
Config Tool

• The Java VM Settings (the settings of the Java Virtual Machine) of SAP
NetWeaver AS Java can only be maintained with the Config Tool. You can use
the Config Tool to configure the managers and services of SAP NetWeaver AS
Java.

22 June 2020
Features of the Config Tool

• The settings that you make with the Config Tool only take effect when the SAP
• NetWeaver AS Java is started; that is, you must restart the SAP NetWeaver AS Java
• after maintaining settings.
• The Config Tool is called on the host on which the central instance of the SAP
• NetWeaver AS Java is running. Authentication is performed using the logon to the
• operating system of the host.

22 June 2020
SAP NWA

• The SAP NetWeaver Administrator


(NWA) combines the most important
administration and monitoring tools
for Java and ABAP systems in a new,
browser-bases user interface. The
most important benefits offered by
NWA are:
• You no longer need to switch
between different tools for the
administration,troubleshooting and
problem analysis of your entire SAP
NetWeaver system landscape.
• Instead, you have for Java, and
increasingly for ABAP systems, a
central, cross-landscape
administration tool which enables you
to start and stop instances,
• check configuration settings and logs
and monitor the correct functioning of
the components.

• NWA displays all the monitoring infrastructure data, i.e. alerts together with the current and historical
values.
• The GUI adheres to the current guidelines concerning interface design, is easy to use, task-oriented
and complete. If you use Web Dynpro, it runs in the browser.

22 June 2020
Visual Administrator

• With the Visual Administrator, you log on to the P4 port of an SAP NetWeaver AS Java
instance. It is therefore necessary that the SAP NetWeaver AS Java instance is started.
The Visual Administrator can also be installed on a host on which no SAP NetWeaver AS
Java instance is installed. In this way, it can be used for remote administration. You can
use the Visual Administrator to configure the services and managers of all SAP
NetWeaver AS Java instances in the Cluster. The changes to the selected parameters
take effect during runtime. You can use the Visual Administrator to start or stop services.
You cannot change the Virtual Machine parameters with the Visual Administrator.
22 June 2020
Shell Console Administrator

• You can use Shell Console Administrator to display basic information for an SAP
• NetWeaver AS Java system in a simple way. Shell Console Administrator is also
• suitable for starting and stopping services. You cannot change VM parameters using
• Shell Console Administrator.

22 June 2020
Memory Management in AS JAVA
• The memory area of a Java Virtual Machine (JVM or VM) is mainly divided into three
areas, which are called the young generation, the tenured generation, and the permanent
generation. A "generation" reserves space in the address area of the host.
• On start-up, the Virtual Machine allocates operating system memory for each "generation".
This initially allocated memory area is called "initial" or initial size.
• This occupancy of this space is administered internally by the VM.Once the initial space
has been used, the VM allocates further operating system memory space in stages up to
a maximum amount. This maximum value is defined in "max size".
• The VM automatically takes care of the allocation of memory space for Java applications.
The memory space is implicitly assigned when an object is created.
• Even if a large amount of memory is required, this does not mean that the system is at
risk. The VM determines which objects are no longer used and releases the memory
areas which they currently occupy. This task is performed by the Special Java Agent
named Garbage Collector (GC) which forms part of the VM. Its job is to prevent the
occurrence of situations in which there is a danger of memory bottlenecks.
• The memory space that is available is called the available memory or allocated memory.
Since this space is reserved by the operating system, it is also referred to as .reserved.
space since the entire space up to the maximum size is .available.. The space that is not
yet reserved is called virtual memory. However, this should not be confused with the
.virtual memory. of the operating system. If less space is required, the memory is returned
to the operating system, also in stages.
• The reserved memory space (available memory) is potentially available to the VM.
However, it does not have to be used in full. The memory space that is actually used by
Java applications is referred to as used memory.

22 June 2020
Memory Allocation in AS JAVA

22 June 2020
Explanation of the Term “Generation”
• The three main memory areas of the VM, the young, tenured, and permanent generations
differ from one another due to the data stored in them. The objects that have been newly
created by the applications are stored in the young generation.
• Objects that have been required for a longer period of time by an application are
automatically moved to the tenured generation. The newer objects are in the young
generation and the older objects are in the tenured generation.
• Objects that are permanently required by the VM, such as classes and methods, are
stored in the permanent generation.
• Objects that are no longer required by the applications are automatically removed from the
generation. This process is known as garbage collection.
• The generations have an initial and a maximum size. For the young generation, you can
define the initial size with the parameter -XX:NewSize, and the max size with the
parameter -XX:MaxNewSize.
• You can define the corresponding values for the permanent generation (also abbreviated
to the perm generation) with the parameters -XX:PermSize and -XX:MaxPermSize.
• You cannot directly define the initial and maximum sizes of the tenured generation. These
are calculated from the parameters for the young generation and the parameters -Xmx
and -Xms.
• The parameter -Xmx is called the max heap size and defines the total size of the young
and tenured generations.
• The parameter -Xms is called the start heap size or initial heap size and defines the total
initial size of the young and tenured generations.

22 June 2020
BREAKOUT
SESSION

22 June 2020
Exercise

EXERCISE

• Login to the server at the OS Level


• Identify the structure of the AS JAVA Instance , note the location of the
profile files , log files and the kernel
• Start the browser and goto the URL : http://servername:5<instance
Number>00/
• Navigate to system info link to get a clear understanding of the
instance properties and the software components
• Now start the quicklink /nwa to start the Netweaver Administrator
• Using the logs & trace option under monitoring , open the latest files
and note the nature of the logs created
• Start the Visual admin and walk through the dispatcher and server
nodes. Note the manager & service names and their properties
• Start the config tool and navigate through the nodes & properties

22 June 2020
Q&A Session

22 June 2020

You might also like