cancel
Showing results for 
Search instead for 
Did you mean: 

netweaver AS java not stating

nelson_chamba2
Participant
0 Kudos

Dear all,

I´m having problem starting my AS Java, as the screenshot shows. It says starting but it´s not changing is status.

The error message is 503 Service Unavailable.

On the console I can see that the disk+work.exe did not started completely.

any idea please?

Best regards,

Nelson Chamba\

Accepted Solutions (1)

Accepted Solutions (1)

Reagan
Advisor
Advisor
0 Kudos

The problem is pretty understandable.

You only have 8 GB of memory and there is Database, ABAP, Java and SMD running.

For sure the system is undersized.

If possible consider adding more memory to the server.

The only thing I can suggest is to reduce the heap memory for the Java server node from 2 GB to 1GB. For that you need to change the -Xmx and -Xms to value 1024 and restart the Java stack.

This is something not which is not recommended according to the SAP note.

1603093  - SAP JVM 4.1 parameters NetWeaver 2004 and 7.0

There is not need to run Jcmon. You need to select the "AS Java Process table" in the SAP MMC to see the status of the J2EE processes.

Regards

RB

nelson_chamba2
Participant
0 Kudos

Hi Benjamin,

let me do it right now and will let u know the results.

regards,

nelson\

nelson_chamba2
Participant
0 Kudos

Hi Benjamin,

I upgraded to 16GB of RAM and problem solved.

Thank you.

Best regards,

Nelson Chamba\

Answers (5)

Answers (5)

former_member183107
Contributor
0 Kudos

Hi,

Please check the below note:-

Note 696410 - Java VM settings for EP6 on J2EE 6.20

Also, Please share the screenshot of the error now.

Regards,

Himanshu

nelson_chamba2
Participant
0 Kudos

Sharman,

the link is great but all my settings looking good or according with the recommended and I still don´t know why this is not running.

It was running perfect since the license problems. it was running with a temp license and it expired and I lost connections till i request a new one that gave me problems because of the product choose. so I had to chose a new product that was Standard Java and not the J2EE.

Now i don´t know if that was the problem

Please advise.

Regards,

Nelson Chamba

former_member183107
Contributor
0 Kudos

Hi,

Could you please paste the output of JCMON in your command prompt.

Use the below comand in your system:-

login with sidadm and open cmd:-

jcmon pf=/usr/sap/<SID>/sys/profile/<SAPSID>_<INSTANCE_ID>_<HOST>

useful link for jcmon:

http://help.sap.com/saphelp_nw04/helpdata/en/d3/4d074147c1f06fe10000000a1550b0/content.htm

Regards,

Himanshu

nelson_chamba2
Participant
0 Kudos

Hi Sharma,

Here is the output should I say YES/NO?

Regards,

Nelson Chamba

former_member206552
Active Contributor
0 Kudos

Hi Nelson,

press yes

nelson_chamba2
Participant
0 Kudos

Hi Marius,

here u r

Regards,

Nelson Chamba\

former_member206552
Active Contributor
0 Kudos

Hi Nelson,

please either specify the full network path

jcmon pf=\\hostname.domain.name\sapmnt\SID\profile\profile.name

or

jcmon pf=drive:\usr\sap\SID......

Best Regards

Marius

nelson_chamba2
Participant
0 Kudos

Hi all,

SAP Support team is suggesting this

(1) Please check if OS reboot could resolve your problem.

(2) If not, please shutdown NetWeaver Java (leave ABAP running),

  and make sure there's enough physical memory (at very least 3GB).

(3) You can launch configtool and assign 1.5GB max heap size AND xms

for server node and restart AS Java, and see if it could be started.

My question is how do I do the step (2)?

Best regards,

nelson chamba\

Reagan
Advisor
Advisor
0 Kudos

(1) Please check if OS reboot could resolve your problem.

You already tried this.

(2) If not, please shutdown NetWeaver Java (leave ABAP running), and make sure there's enough physical memory (at very least 3GB).

Tx SMICM

(3) You can launch configtool and assign 1.5GB max heap size AND xms for server node and restart AS Java, and see if it could be started.

Check my suggestion in the last reply.

Regards

RB

nelson_chamba2
Participant
0 Kudos

Hi Marius,

this is not what your are expecting to see???

former_member206552
Active Contributor
0 Kudos

Hi Nelson,

no not if you are trying to access jcmon

then you need to execute

jcmon pf=\\SAP1\sapmnt\SLM\profile\SLM_DVEBMGS00_SAP1

from command line.

But please follow the recommendations of Reagan, and let us know the results

Best Regards

Marius

Reagan
Advisor
Advisor
0 Kudos

Error occurred during initialization of VM

Could not reserve enough space for object heap

[Thr 6024] JLaunchIAbortJava: abort hook is called

If possible restart the server and then start SAP Java manually.

835704  - Java VM fails to initialize with Startup Framework

http://wiki.scn.sap.com/wiki/display/TechTSG/(JSTTSG)(Kernel)SF-JDK-ObjectHeap

Regards

RB

nelson_chamba2
Participant
0 Kudos

Hi Benjamin,

reduce the heapSize from 256 to????

regards,

nelson\

former_member206552
Active Contributor
0 Kudos

Hi Nelson,

What is the reason for the restart ?

Reason for asking is when we load packages it takes sometime up to an hour for java to start the first time

As requested please upload the logs

Best Regards

Marius

nelson_chamba2
Participant
0 Kudos

Hi all,

please find the requested logs.

Best regards,

Nelson Chamba\

nelson_chamba2
Participant
0 Kudos

Hi,

still this one.

regards,

nelson

former_member206552
Active Contributor
0 Kudos

Nelson,

what changes was made on the system because

Error occurred during initialization of VM

Could not reserve enough space for object heap

you seem to be running out of memory,

have a look at this thread : http://scn.sap.com/thread/920222

Best Regards

Marius

karthikeyan_natarajan4
Active Contributor
0 Kudos
Former Member
0 Kudos

Hello Nelson,

At dev_server0 log:

Error occurred during initialization of VM

Could not reserve enough space for object heap

[Thr 5528] JLaunchIAbortJava: abort hook is called

[Thr 5528] **********************************************************************

[Thr 5528] *** ERROR => The Java VM aborted unexpectedly.

[Thr 5528] *** Please see SAP Note 943602 , section 'Java VM crashes'

[Thr 5528] *** for additional information and trouble shooting.

[Thr 5528] **********************************************************************

[Thr 5528] JLaunchCloseProgram: good bye (exitcode = -2)

Make changes according to note 1658950 - J2EE System fails with "exitcode = -2"

BR,

K.

nelson_chamba2
Participant
0 Kudos

Hi Marius,

Look my heap size is 256 how big should I set it to?

My servers is running Windows 2008 R2 EE 64bit with 7.1 of 8.0 GB of RAM, 2 partition one with 67 of 175 GB free and the database with 139 of 273 GB free.

Best regards,

Nelson Chamba\

Reagan
Advisor
Advisor
0 Kudos

Hello

-> arg[ 34]: -Xmx2048M

-> arg[ 35]: -Xms2048M

-> arg[ 36]: -Xss2M

You need to expand the instance node and then check the memory assigned for the server0 node.

Regards

RB

nelson_chamba2
Participant
0 Kudos

Hi Benjamin,

there are in 3 different places:

1. instance

2. dispatcher

3. server_ID

all of the have Xmx, Xms and Xss with different values, some of them has the 2048 and another 256.

What should I change and where?

regards,

nelson chamba\

Reagan
Advisor
Advisor
0 Kudos

You need to look for the heap memory assignment of the server0 node.

That is where the error is.

Regards

RB

nelson_chamba2
Participant
0 Kudos

Hi Benjamin,

I believe we are close but I still can´t find that, can you please help?

regards,

nelson\

Reagan
Advisor
Advisor
0 Kudos

Expand the part I have highlighted.

There you will see the dispatcher node and the server node.

Regards

RB

nelson_chamba2
Participant
0 Kudos

Hi Benjamin,

Yes I can see and than?

regards,

Nelson\

nelson_chamba2
Participant
0 Kudos

Hi Kamil,

this is not the case, the problem is:

Error occurred during initialization of VM

Could not reserve enough space for object heap

Now I don´t know which values should I set in order to make it run because so far it has -Xms2048 and -Xss2M

Any idea?

Best regards,

Nelson Chamba\

Reagan
Advisor
Advisor
0 Kudos

Hello

Is it possible to restart the server and then start the SAP system ?

I wouldn't suggest changing any of he parameters now as the heap parameters are already set with the standard values.

What is the memory available on the machine ? You need to make sure that there is sufficient memory available on the server for the ABAP, JAVA and the database.

Regards

RB

nelson_chamba2
Participant
0 Kudos

Hi Benjamin,

I restarted the server and the memory is 8GB, after starting the SAP instance it goes up till 7.1GB of usage.

Please see the screenshot for more details.

Best regards,

Nelson\

Former Member
0 Kudos

Hi Nelson,

Is there any logs under \usr\sap\<SID>\DVEBMGS01\j2ee\cluster\server0\log

application.log , defaultTrace.log

if yes please attach those.

Thanks,

Abhijeet

former_member183107
Contributor
0 Kudos

Hi Nelson,

Please paste the logs of jvm: dev_disp and dev_jcontrol etc in /work folder.

also logs at location usr\sap\SID\JC<>\j2ee\cluster\server\\log.

from the screenshot i suppose you should wait for sometime as i can see some processes are running and then check the url.

Regards,

Himanshu


Former Member
0 Kudos

Hello Nelson,

Upload logs such as bootstrap, dev_disp, sever.out jcontrol to investigate.

BR,

K.