Você está na página 1de 7

3/20/2019 “AS Java System hang occurs!

” – What to do | SAP Blogs

Products
Products Industries
Industries Services and Support
Services Support Training
Training Community
Community Developer
Developer Partner
Partner About
About  
Ask a Question Write a Blog Post Login

Tom Xing
January 29, 2015 2 minute read

“AS Java System hang occurs!” – What to do


Follow RSS feed Like

0 Likes 877 Views 2 Comments

So far there has been many incidents with such complaint.

However system administrators seem to have di erent de nition of ‘hang’.


Although such issue can usually be resolved by a restart, Root Cause Analysis is usually pursued.

This blog tries to sort things out for system admins. 😏

At least, the system admin had better know which logs should be collected before the restart, so that we can grab a chance for RCA.

/* ‘Server hang’ is de nitely a gigantic topic – this blog will try not to dig into further technical details. */

https://blogs.sap.com/2015/01/29/as-java-system-hang-occurs/ 1/7
3/20/2019 “AS Java System hang occurs!” – What to do | SAP Blogs

1. Clearly de ne the symptom.

Is it occurring only upon some speci c operation? Or on whole system?


Is it occurring only for speci c J2EE / Portal user?
Is it occurring only on speci c client PC / browser?
Is it occurring only on newly-logged-on users? Is it also occurring on already-logged-on users?
Is it occurring with or without load balancer?
Is it occurring on all instances / server nodes?
Is AS Java ‘green’ in SAP MMC / SAP MC?

Besides all above, screenshots / HTTP Watch trace are de nitely helpful.

These questions help you as well as SAP support to understand your problem.

2. How to proceed the RCA

https://blogs.sap.com/2015/01/29/as-java-system-hang-occurs/ 2/7
3/20/2019 “AS Java System hang occurs!” – What to do | SAP Blogs

Firstly some basic rules:

– If Load Balancer blocks the way -> check with LB vendor.

– If dispatcher / ICM / server node has died -> don’t expect a normal behavior. Check work folder and defaultTrace.

– If issue only occurs on speci c client PC / browser -> check if browser is supported as per PAM. And check if this PC has any peculiarities against others.

– If issue only occurs on certain instance / server nodes -> check below steps agains that speci c instance / server node.

– If issue occurs on consumer portal under FPN scenario, also check the provider system.

– Last but not least, make sure there’s enough CPU/RAM/Disk resource on OS.

Regarding other scenarios, for simplicity, you can collect below trace together.

– HTTP Watch trace

– Thread dump or SAP JVM Pro ler trace, on server node (and also dispatcher for 7.0X)

– work folder

– defaultTrace

– SAP MMC Snapshot

https://blogs.sap.com/2015/01/29/as-java-system-hang-occurs/ 3/7
3/20/2019 “AS Java System hang occurs!” – What to do | SAP Blogs

// If you have to know why these traces are necessary:

/*

– Scenario 1

  AS Java is running, responding, but some speci c application returned a blank page (browser is no longer loading the page). Other applications are working
ne.

  In this case, server is not actually in ‘hang’ status.

  -> Collect HTTP Watch trace so that we can see where it stopped.

  -> Also check PAM to see if the IE version is supported.

– Scenario 2

  AS Java is running, responding, but some speci c application did not respond and browser is still waiting. Other applications are working ne.

  We must check where it actually hangs during HTTP tra c – it might be on AS Java, on AS ABAP, or on 3rd party system, or simply on network.

  -> In this scenario, HTTP Watch trace will be necessary at very rst place.

  -> In many cases it is indeed hanging on AS Java – see below.

– Scenario 3

https://blogs.sap.com/2015/01/29/as-java-system-hang-occurs/ 4/7
3/20/2019 “AS Java System hang occurs!” – What to do | SAP Blogs

  AS Java is running but not responding. Or, it is refusing new requests but still serving the old ones.
  It is very likely that (some speci c kind of) threads are exhausted, and we must check at runtime.

  -> Collect thread dump or SAP JVM Pro ler trace when issue IS OCCURRING. This is necessary to tell the root cause.

  -> Collect SAP MMC Snapshot for 7.10 onwards.

  -> Collect work folder logs

  -> Collect defaultTrace

*/

N.B., it’s not a guarantee that the logs listed above are 100% enough for every issue. But it’s a good start.

Reference Documents

1095473 – How to get a full thread dump in AS Java

1558903 – How To Trace a Portal Scenario Using HttpWatch

1783031 – Analyzing AS Java performance with SAP JVM Pro ler

1847251 – How to create an MMC snapshot about an SAP system

https://blogs.sap.com/2015/01/29/as-java-system-hang-occurs/ 5/7
3/20/2019 “AS Java System hang occurs!” – What to do | SAP Blogs

Alert Moderator

Assigned tags

SAP NetWeaver Application Server | SAP NetWeaver | administration | beginner | netweaver |

View more...

Related Blog Posts

Java performance problem : the logs which needs to be collected for SAP Support
By Asha Pillai , Nov 14, 2014
Anatomy for SAP Net Weaver Administrator – Operations
By Former Member , Apr 09, 2014
Push ABAP system data to a Java only SLD ( NW 7.3 and Above)
By Former Member , Nov 12, 2014

Related Questions

Gateway Access Control List : reginfo le creation


By Junaid Ahmad , Feb 15, 2018
Connecting Two ECC ABAP systems to single NW AS JAVA 7.4 server
By Former Member , Feb 27, 2017
Error while connecting to database jdbc driver not supported for oracle database"?
By sreenivas najana , Nov 13, 2018

https://blogs.sap.com/2015/01/29/as-java-system-hang-occurs/ 6/7
3/20/2019 “AS Java System hang occurs!” – What to do | SAP Blogs

2 Comments

You must be Logged on to comment or reply to a post.

Former Member

June 19, 2015 at 2:54 pm


Could you please elaborate the HTTP watch trace, SAP JVM pro le trace and SAP MMC Snapshot in details for nding the RCA of the Java stack got stopped.

Like (0)

Tom Xing | Post author

June 22, 2015 at 3:03 pm


Hi Satish,

Added referenced notes.

BR, Tom

Like (0)

Share & Follow

Privacy Terms of Use Legal Disclosure Copyright Trademark Cookie Preferences Sitemap Newsletter

https://blogs.sap.com/2015/01/29/as-java-system-hang-occurs/ 7/7

Você também pode gostar