My api is getting hit 234 hit on api 48 are failed 186 is success on the wrapper
Assistant
It looks like you're analyzing the performance of your API based on the hit metrics you've provided. Here’s a breakdown of the data you shared:
Total API hits: 234
Failed requests: 48
Successful requests: 186
To better understand these numbers, you might consider calculating some additional metrics:
Success Rate: This is the percentage of successful requests out of the total requests.
[
\text{Success Rate} = \left( \frac{\text{Successful Requests}}{\text{Total Requests}} \right) \times 100 = \left( \frac{186}{234} \right) \times 100 \approx 79.5%
]
Failure Rate: This is the percentage of failed requests out of the total requests.
[
\text{Failure Rate} = \left( \frac{\text{Failed Requests}}{\text{Total Requests}} \right) \times 100 = \left( \frac{48}{234} \right) \times 100 \approx 20.5%
]
If you're trying to diagnose why those 48 requests failed, consider checking:
Error logs for specific failure messages.
The status codes returned by the API.
Network issues or timeouts.
User
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Payload issues or incorrect parameters being passed.
Is there a specific question or area you would like to delve deeper into regarding this data?
11 Feb 2025 10:46:16,610 [[ACTIVE] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.sbigeneral.LoginCapatchePoc.Controller.CardLimitController [] - Internal server error occurred while fetching CardLimit details for FetchCreditCardController: oNykQ8ok2gcvuAYAUYh1SCT1pnUv72CY/pPTV/zHNZw0Mk7U
org.springframework.transaction.UnexpectedRollbackException: JTA transaction unexpectedly rolled back (maybe due to a timeout); nested exception is weblogic.transaction.RollbackException: Transaction timed out after 31 seconds
BEA1-6B452867773C0F8CC80E
at org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1038) ~[spring-tx-5.3.25.jar:5.3.25]
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:743) ~[spring-tx-5.3.25.jar:5.3.25]
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:711) ~[spring-tx-5.3.25.jar:5.3.25]
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:654) ~[spring-tx-5.3.25.jar:5.3.25]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:407) ~[spring-tx-5.3.25.jar:5.3.25]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) ~[spring-tx-5.3.25.jar:5.3.25]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.25.jar:5.3.25]
at org.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.proceed(CglibAopProxy.java:763)[springDynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) ~[spring-aop-5.3.25.jar:5.3.25]
at com.sbigeneral.LoginCapatchePoc.ServiceImpl.CreditCardLimitServiceImplEnhancerBySpringCGLIBfd6a269d.fetchParentCodeDetails() ~[_wl_cls_gen.jar:?]
at com.sbigeneral.LoginCapatchePoc.Controller.CardLimitController.FetchParentCardLimit(CardLimitController.java:560) ~[_wl_cls_gen.jar:?]
at com.sbigeneral.LoginCapatchePoc.Controller.CardLimitControllerFastClassBySpringCGLIB8f5afaf0.invoke() ~[_wl_cls_gen.jar:?]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.25.jar:5.3.25]
at org.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.25.jar:5.3.25]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89) ~[spring-aop-5.3.25.jar:5.3.25]
at io.github.resilience4j.ratelimiter.RateLimiter.lambdadecorateCheckedSupplier9076412bCglibMethodInvocation.proceed(CglibAopProxy.java:763) [spring-aop-5.3.25.jar:5.3.25]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) [spring-aop-5.3.25.jar:5.3.25]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.3.25.jar:5.3.25]
at org.springframework.aop.framework.CglibAopProxyDynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) [spring-aop-5.3.25.jar:5.3.25]
at com.sbigeneral.LoginCapatchePoc.Controller.CardLimitControllerEnhancerBySpringCGLIB52cdb0cb.FetchParentCardLimit() [_wl_cls_gen.jar:?]
at sun.reflect.GeneratedMethodAccessor2279.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) [spring-webmvc-5.3.25.jar:5.3.25]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) [spring-webmvc-5.3.25.jar:5.3.25]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) [spring-webmvc-5.3.25.jar:5.3.25]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) [spring-webmvc-5.3.25.jar:5.3.25]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071) [spring-webmvc-5.3.25.jar:5.3.25]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964) [spring-webmvc-5.3.25.jar:5.3.25]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [spring-webmvc-5.3.25.jar:5.3.25]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) [spring-webmvc-5.3.25.jar:5.3.25]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet.javax.servlet-api.jar:3.1.0]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [spring-webmvc-5.3.25.jar:5.3.25]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet.javax.servlet-api.jar:3.1.0]
at weblogic.servlet.internal.StubSecurityHelperServletServiceAction.run(StubSecurityHelper.java:260) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.25.jar:5.3.25]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter(FilterChainProxy.java:346) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:122) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:116) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter(FilterChainProxy.java:346) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:109) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter(FilterChainProxy.java:346) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter(FilterChainProxy.java:346) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter(FilterChainProxy.java:346) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter(FilterChainProxy.java:346) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter(FilterChainProxy.java:346) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:221) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:186) [spring-security-web-5.7.6.jar:5.7.6]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267) [spring-web-5.3.25.jar:5.3.25]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.25.jar:5.3.25]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.25.jar:5.3.25]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:126) [spring-boot-2.7.8.jar:2.7.8]
at org.springframework.boot.web.servlet.support.ErrorPageFilter.access000(Er1.doFilterInternal(ErrorPageFilter.java:101) [spring-boot-2.7.8.jar:2.7.8]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:119) [spring-boot-2.7.8.jar:2.7.8]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.3.25.jar:5.3.25]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.25.jar:5.3.25]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContextServletInvocationAction.run(WebAppServletContext.java:3667) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326) [com.oracle.weblogic.security.subject.jar:12.2.1.3]
at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197) [com.oracle.weblogic.security.subject.jar:12.2.1.3]
at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2443) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2291) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2269) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1703) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1663) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.provider.ContainerSupportProviderImplWorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670) ~[com.bea.core.weblogic.workmanager.jar:12.2.1.3]
... 7 more getting this issue
The error log you have provided indicates that there was an internal server error due to a transaction timeout. Let's break down the relevant parts of the log to better understand the issue:
Key Points from the Log
Error Type:
org.springframework.transaction.UnexpectedRollbackException: This indicates that a transaction which was expected to complete successfully was rolled back due to an unexpected situation.
Cause of Failure:
The inner exception is weblogic.transaction.RollbackException, specifically indicating that the transaction timed out after 31 seconds.
Stack Trace:
The stack trace shows that the error originates when trying to commit a JTA (Java Transaction API) transaction managed by Spring's JtaTransactionManager.
Concurrency and Performance:
The log indicates a long-running process that exceeds the configured transaction timeout, leading to unsuccessful attempts to commit changes back to the database or other resources.
Possible Causes and Solutions
Transaction Timeout:
Review your WebLogic server configuration for transaction timeouts. If the operations conducted in fetchParentCodeDetails take too long, consider increasing the timeout settings.
Optimize Code:
Investigate the method fetchParentCodeDetails. Look for any inefficiencies in database queries, long-running tasks, or other operations that might be causing the transaction to exceed the timeout.
Consider using lazy loading or paginated queries if you're dealing with large datasets.
Database Performance:
Check the performance of your database. Long-running queries or locks could cause a delay in the transaction. Using tools like query profiling might help you identify any problematic queries.
Threading and Resource Limits:
Ensure that you have appropriate resource allocations (threads, memory, etc.) to handle the transactions. If many requests are processed simultaneously, it might lead to increased transaction durations.
Rate Limiting and Circuit Breaker:
Since the stack trace includes components from Resilience4j's rate limiter, ensure that you're not hitting rate limits that add to the latency.
Logging and Monitoring:
Implement additional logging and monitoring around this specific operation to capture metrics like execution time, input parameters, and system load to help diagnose the root cause more effectively.
Use APM (Application Performance Management) tools to see how long the fetchParentCodeDetails method is taking during execution and to identify bottlenecks.
Database Indexing:
Ensure that your database tables are properly indexed for any queries made within the fetchParentCodeDetails method.
Test with a Load:
Replicate the issue in a development or staging environment to see how performance changes under load.
By addressing these areas, you'll likely find a solution to the transaction timeout issue. If you continue to experience problems, consider providing additional details about the operation being performed, as well as any relevant configurations that may affect performance.