Hi,
We have created mobile application for that
java is an service provider (Presentation Service), which (PS) get request from apps and sent it to WCS(Web Commerce Server 7). Getting xml based response then we are formatting as json and sending it back to mobile apps. This was doing the PS layer.
We have created web project using spring framework, also we have created another one web project which is get the request from PS and get data from endeca and send it back to PS. This is small application deployed on the same server (tomcat-7).
My application deployed on two instance server#1 and server#2 (
tomcat 7). These two instance are installed two Linux system. Those two instance are tested with load balance (concurrent user 1000) very beginning. It was OK. Now, we are facing issue like Servers are getting shutting down automatically. We suspected there was some memory leak. We have executed with jMap tool on two PRODUCTION server, then generated with heapDump. It shows like
We have provided heap size is min:512m & Maxsize:1024 on tomcat setenv.sh itself.
Do you have any idea, why this occurring. What i have done the mistake.
The report is below:
Top Consumers : Retained Set : Possible Memory Waste : Duplicate Strings
Found 48 occurrences of char[] with at least 10 instances having identical content. Total size is 4,309,320 bytes.
Top elements include:
•16,009 × product.review.avg_rating_range (80 bytes)
•15,844 × Current_Offers (48 bytes)
•15,307 × Brand (32 bytes)
•7,243 × Price (32 bytes)
•9,025 × Type (24 bytes)
Details »
In our spring-config.xml file, we have provided the scope is empty. So that it act as singleton. Then how the instance is having same content. Do you have any idea or any suggestion. Please let me know
Thanks
saravanan s
[Rob] split a long line