[jira] [Commented] (WW-4397) Sporadically thread is getting struck in WL11 using struts2

2014-08-26 Thread srikanthkoneti (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14111409#comment-14111409
 ] 

srikanthkoneti commented on WW-4397:


Any update on this issue.

> Sporadically thread is getting struck in WL11 using struts2
> ---
>
> Key: WW-4397
> URL: https://issues.apache.org/jira/browse/WW-4397
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Actions
>Affects Versions: 2.3.15
> Environment: Linux, WL11, Struts2
>Reporter: srikanthkoneti
> Fix For: 2.3.15
>
>
> Sporadically thread is getting struck, We could not find anything in our code.
> Stack Trace i am sharing, here i am seeing it is ended up with sun java 
> reflection.
> brief explanation about our coding:
> ===
> As per our design, we invoke several actions in a page flow. it is chain of 
> multiple actions, almost at 7th action we are rendering the jsp page. But at 
> the time rendering the page sporadically (once in 3 or 4 days) we are seeing 
> this stack trace. But if it start logging this stack trace, all the active 
> threads are getting stuck and server un responsive. Looks like it is not an 
> exception, whole object stack trace
>    
>   <[ACTIVE] ExecuteThread: '274' 
> for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> 
> <1409016009864>  <[STUCK] ExecuteThread: '260' for queue: 
> 'weblogic.kernel.Default (self-tuning)' has been busy for "676" seconds 
> working on the request "Workmanager: default, Version: 0, Scheduled=true, 
> Started=true, Started time: 676338 ms
> [
> GET 
> /IVChallengeWeb/flexapp/iventry/challenge.do?token=*8803AweHR5dykTKgaqSenDgI4R8rUh5)jYu4hNsemwJVXpFIJ4CNJ7OpUBDw0sy&AccountName=FactActIVC
>  HTTP/1.1
> Connection: keep-alive
> Accept: 
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
> User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like 
> Gecko) Chrome/36.0.1985.143 Safari/537.36
> Referer: 
> https://annualcreditreport.transunion.com/coss/common/challenge.jsp?cb=FA
> Accept-Encoding: gzip,deflate,sdch
> Accept-Language: en-US,en;q=0.8
> Cookie: 
> JSESSIONID=jnYPkcoO2_IOntQWEGy2HQHd96DjyGdIn_Sr6vQ6YlrWtJ9t9G_p!835949118
> X-Forwarded-For: 108.233.49.168
> ]", which is more than the configured time (StuckThreadMaxTime) of "600" 
> seconds. Stack trace:
> Thread-480 "[STUCK] ExecuteThread: '260' for queue: 'weblogic.kernel.Default 
> (self-tuning)'"  {
> sun.reflect.GeneratedMethodAccessor9540.invoke(Unknown Source)
> 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
> 
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.in

[jira] [Commented] (WW-4397) Sporadically thread is getting struck in WL11 using struts2

2014-08-26 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14111901#comment-14111901
 ] 

Lukasz Lenart commented on WW-4397:
---

As I wrote previously, the design of application is wrong, using chain of 
actions is bad pattern.

{noformat}
<[STUCK] ExecuteThread: '260' for queue: 'weblogic.kernel.Default 
(self-tuning)' has been busy for "676" seconds
working on the request *** [***], which is more than the configured time 
(StuckThreadMaxTime) of "600" seconds.
{noformat}

Here you have answer, it isn't application fault but server simple marks such 
thread as {{STUCK}} because it was busy for too long. You can simple increase 
{{StuckThreadMaxTime}} to avoid such problems, but in long perspective you must 
re-design your app.

> Sporadically thread is getting struck in WL11 using struts2
> ---
>
> Key: WW-4397
> URL: https://issues.apache.org/jira/browse/WW-4397
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Actions
>Affects Versions: 2.3.15
> Environment: Linux, WL11, Struts2
>Reporter: srikanthkoneti
> Fix For: 2.3.15
>
>
> Sporadically thread is getting struck, We could not find anything in our code.
> Stack Trace i am sharing, here i am seeing it is ended up with sun java 
> reflection.
> brief explanation about our coding:
> ===
> As per our design, we invoke several actions in a page flow. it is chain of 
> multiple actions, almost at 7th action we are rendering the jsp page. But at 
> the time rendering the page sporadically (once in 3 or 4 days) we are seeing 
> this stack trace. But if it start logging this stack trace, all the active 
> threads are getting stuck and server un responsive. Looks like it is not an 
> exception, whole object stack trace
> {noformat}
>    
>  
> <[ACTIVE] ExecuteThread: '274' for queue: 'weblogic.kernel.Default 
> (self-tuning)'> <> <> <> <1409016009864> 
> <[STUCK] ExecuteThread: '260' for queue: 'weblogic.kernel.Default 
> (self-tuning)' has been busy for "676" seconds working on the request 
> "Workmanager: default, Version: 0, Scheduled=true, Started=true, Started 
> time: 676338 ms
> [
> GET 
> /**/flexapp/iventry/challenge.do?token=***&AccountName=*
>  HTTP/1.1
> Connection: keep-alive
> Accept: 
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
> User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like 
> Gecko) Chrome/36.0.1985.143 Safari/537.36
> Referer: 
> https://annualcreditreport.transunion.com/coss/common/challenge.jsp?cb=FA
> Accept-Encoding: gzip,deflate,sdch
> Accept-Language: en-US,en;q=0.8
> Cookie: 
> JSESSIONID=jnYPkcoO2_IOntQWEGy2HQHd96DjyGdIn_Sr6vQ6YlrWtJ9t9G_p!835949118
> X-Forwarded-For: 108.233.49.168
> ]", which is more than the configured time (StuckThreadMaxTime) of "600" 
> seconds. Stack trace:
> Thread-480 "[STUCK] ExecuteThread: '260' for queue: 'weblogic.kernel.Default 
> (self-tuning)'"  {
> sun.reflect.GeneratedMethodAccessor9540.invoke(Unknown Source)
> 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
> 
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.Param

[jira] [Commented] (WW-4397) Sporadically thread is getting struck in WL11 using struts2

2014-08-27 Thread srikanthkoneti (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112443#comment-14112443
 ] 

srikanthkoneti commented on WW-4397:


Hi Lenart,

Our application is not newly created application, It is a migrated application 
from JPF to Struts2. JPF is a wrapper on struts1.x framework. We never faced 
any issue using that framework in WL10. Since JPF is not supported by WL11 
Server we had to move to Strut2 framework.  Increasing the StuckThreadMaxTime 
is one option. I agree that but i would like to understand more on this java 
reflection. How much time java code requires to execute multiple chain of 
actions.  I can understand design issue and we can try to make better design. 
But the same design has been worked in WL10 +JPF without any issue.

Any input can help us.

Thanks
Srikanth.K

> Sporadically thread is getting struck in WL11 using struts2
> ---
>
> Key: WW-4397
> URL: https://issues.apache.org/jira/browse/WW-4397
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Actions
>Affects Versions: 2.3.15
> Environment: Linux, WL11, Struts2
>Reporter: srikanthkoneti
> Fix For: 2.3.15
>
>
> Sporadically thread is getting struck, We could not find anything in our code.
> Stack Trace i am sharing, here i am seeing it is ended up with sun java 
> reflection.
> brief explanation about our coding:
> ===
> As per our design, we invoke several actions in a page flow. it is chain of 
> multiple actions, almost at 7th action we are rendering the jsp page. But at 
> the time rendering the page sporadically (once in 3 or 4 days) we are seeing 
> this stack trace. But if it start logging this stack trace, all the active 
> threads are getting stuck and server un responsive. Looks like it is not an 
> exception, whole object stack trace
> {noformat}
>    
>  
> <[ACTIVE] ExecuteThread: '274' for queue: 'weblogic.kernel.Default 
> (self-tuning)'> <> <> <> <1409016009864> 
> <[STUCK] ExecuteThread: '260' for queue: 'weblogic.kernel.Default 
> (self-tuning)' has been busy for "676" seconds working on the request 
> "Workmanager: default, Version: 0, Scheduled=true, Started=true, Started 
> time: 676338 ms
> [
> GET 
> /**/flexapp/iventry/challenge.do?token=***&AccountName=*
>  HTTP/1.1
> Connection: keep-alive
> Accept: 
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
> User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like 
> Gecko) Chrome/36.0.1985.143 Safari/537.36
> Referer: 
> https://annualcreditreport.transunion.com/coss/common/challenge.jsp?cb=FA
> Accept-Encoding: gzip,deflate,sdch
> Accept-Language: en-US,en;q=0.8
> Cookie: 
> JSESSIONID=jnYPkcoO2_IOntQWEGy2HQHd96DjyGdIn_Sr6vQ6YlrWtJ9t9G_p!835949118
> X-Forwarded-For: 108.233.49.168
> ]", which is more than the configured time (StuckThreadMaxTime) of "600" 
> seconds. Stack trace:
> Thread-480 "[STUCK] ExecuteThread: '260' for queue: 'weblogic.kernel.Default 
> (self-tuning)'"  {
> sun.reflect.GeneratedMethodAccessor9540.invoke(Unknown Source)
> 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
> 
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.jav

[jira] [Commented] (WW-4397) Sporadically thread is getting struck in WL11 using struts2

2014-08-27 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113391#comment-14113391
 ] 

Lukasz Lenart commented on WW-4397:
---

You cannot compare two different frameworks - S1 and S2 are totally different. 
Also I don't recall chaining functionality in S1.

It isn't a problem with Reflection, processing request takes too long and 
that's the issue you must focus on. I've noticed a lot of interceptors 
involved, you supposed to define a new small stack that should be used with all 
that chaining actions - you don't need {{FileUploadInterceptor}}, probably 
{{ScopedModelDrivenInterceptor}} and {{ModelDrivenInterceptor}} as well, 
{{CheckboxInterceptor}} and {{MultiselectInterceptor}} and 
{{StaticParametersInterceptor}} probably the same.

And you should use profiler to check why it takes so long to process the whole 
chain - it can some network issue, or DB is slow or something else.

> Sporadically thread is getting struck in WL11 using struts2
> ---
>
> Key: WW-4397
> URL: https://issues.apache.org/jira/browse/WW-4397
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Actions
>Affects Versions: 2.3.15
> Environment: Linux, WL11, Struts2
>Reporter: srikanthkoneti
> Fix For: 2.3.15
>
>
> Sporadically thread is getting struck, We could not find anything in our code.
> Stack Trace i am sharing, here i am seeing it is ended up with sun java 
> reflection.
> brief explanation about our coding:
> ===
> As per our design, we invoke several actions in a page flow. it is chain of 
> multiple actions, almost at 7th action we are rendering the jsp page. But at 
> the time rendering the page sporadically (once in 3 or 4 days) we are seeing 
> this stack trace. But if it start logging this stack trace, all the active 
> threads are getting stuck and server un responsive. Looks like it is not an 
> exception, whole object stack trace
> {noformat}
>    
>  
> <[ACTIVE] ExecuteThread: '274' for queue: 'weblogic.kernel.Default 
> (self-tuning)'> <> <> <> <1409016009864> 
> <[STUCK] ExecuteThread: '260' for queue: 'weblogic.kernel.Default 
> (self-tuning)' has been busy for "676" seconds working on the request 
> "Workmanager: default, Version: 0, Scheduled=true, Started=true, Started 
> time: 676338 ms
> [
> GET 
> /**/flexapp/iventry/challenge.do?token=***&AccountName=*
>  HTTP/1.1
> Connection: keep-alive
> Accept: 
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
> User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like 
> Gecko) Chrome/36.0.1985.143 Safari/537.36
> Referer: 
> https://annualcreditreport.transunion.com/coss/common/challenge.jsp?cb=FA
> Accept-Encoding: gzip,deflate,sdch
> Accept-Language: en-US,en;q=0.8
> Cookie: 
> JSESSIONID=jnYPkcoO2_IOntQWEGy2HQHd96DjyGdIn_Sr6vQ6YlrWtJ9t9G_p!835949118
> X-Forwarded-For: 108.233.49.168
> ]", which is more than the configured time (StuckThreadMaxTime) of "600" 
> seconds. Stack trace:
> Thread-480 "[STUCK] ExecuteThread: '260' for queue: 'weblogic.kernel.Default 
> (self-tuning)'"  {
> sun.reflect.GeneratedMethodAccessor9540.invoke(Unknown Source)
> 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
> 
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.ja