cancel
Showing results for 
Search instead for 
Did you mean: 

Bad JSP compile time

Former Member
0 Kudos

Hi there,

after migrating from  7.02 to 7.40 we encountered compile times of about 30 seconds for each JSP in our WebApplication, but only if the JSP was requested via a HTTP-request (Portal Navigation). If the JSPs wehere compiled within the Restart of the Portal or the WebApplication, then the compile time was just 1-2 seconds.

Accepted Solutions (0)

Answers (6)

Answers (6)

stefan_mahnke
Participant
0 Kudos

Hi Walter,

did you find a solution to this issue?

Regards Stefan

Former Member
0 Kudos

Hi Stefan,

no solution till now. SAP staff is working on it, hopefully..

Regards

Walter.

Former Member
0 Kudos

Hi there,

our main problem is, that before Migration of Netweaver 7.02 to 7.40, JSP compile took just 3 Seconds whereas after Migration it takes 30 Seconds for the the same JSP.
Before Migration we used SUN/Oracle JVM and now we are using SAP JVM 6.

Best regards

Walter

former_member193379
Active Contributor
0 Kudos

Hi Walter,

Please change CompileOnStartUp property of the Web Container Service to true (bydefault it comes false).

This means, startup will be little longer.

Use the Visual Administrator tool to do it:

1. Open the Properties tab of the Web Container Service.

2. Edit the CompileOnStartUp property. If it is set to true, then JSP files are compiled at application startup time. If set to false, the JSP is compiled the first time it is requested.

3. Choose (Save Properties) to save your settings.

You are using 7.4 then please make the above changes via NWA.

Thanks,

Hamendra

Former Member
0 Kudos

Hi Hamendra,

we've already set CompileOnStartUp to true but we cannot restart the application whenever a single JSP has changed. Therefore we also need a better Compile-Time when a JSP is requested the first time by a User Interaction. By the way: The application holds about 5000 JSPs. 

Greetings

Walter

former_member193379
Active Contributor
0 Kudos

Hi Wlater,

No need to bounce the server if you changed a single jsp as it will get compiled once it is called by browser so at least only changed jsps shall be complied only.

Please also go through the below "Performance Best Practices Guide for SAP NetWeaver Portal". It may help you.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50eb22f4-589e-2e10-e999-e7db138bb...

Thanks,
Hamendra

former_member193379
Active Contributor
0 Kudos

Hi Walter,

JSP works in the below way, browser asks for a JSP, then the JSP engine first checks to see whether it needs to compile the page. If the page has never been compiled, or if the JSP has been modified since it was last compiled, the JSP engine compiles the page.

Below are the steps of jsp compilation

Parsing the JSP

JSP into a servlet

Compiling the servlet

I am not able to understand about your restart of App Server and compilation.

Thanks,

Hamendra

dror_last
Active Participant
0 Kudos

Hi Walter,

For Portal Component JSP's there is no feature of compile on server start.

Such JSP are compiled into Portal Components only on the first access on runtime.

Moreover even when talking about regular web applications once a JSP was already parsed and compiled restart does nothing with regads to JSP compilation.

Only a fresh start of application after deployment can indicate the real time JSP compilation takes and since applications are attempted to start during deployment most probably the time is part of the deployment itself.

Therefore I'm not sure about your exact findings but you can expect that each initial parsing and compilation of JSP will take a considerable time that you can feel as a user.

You should however put into mind that this is something happening once per server node and considered as "warm up" of the server just as the approch of having lazy startup applications that are being started only on first access.

If you are talking about general Web Applications and not only Portal related I suggest that you post your question in appropriate space.

Best Regards,

Dror.

Former Member
0 Kudos

Thanks Srinivasan,

but this help age only tells how to switch between internal and external compiler.

Nothing else.

Regards,

Walter

srinivasan_vinayagam
Active Contributor
0 Kudos