High cpu usage and extremely slow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 09:26 AM
Hi
I'm running alfresco community 4.2.e on a machine running Red Hat Enterprise Linux Server release 6.4.
It's a default alfresco setup apart from openjdk 1.7 instead of the one in the installer.
I am reading and writing documents form/to alfresco using apache chemistry OpenCMIS.
Everything seems to be working fine until I upload a document, because after that every attempt to retrieve a document takes >20 secs. Every read seems to get stuck on the db-call because a new postgresql process is started and eats lots of CPU and takes forever to finish.
Moreover have I also encountered the java-process running tomcat to for no obvious reason start using 150-200% cpu for hours straight (until I finally restart the service).
I have about 10 to 50 documents (images + thumbnail renditions) in my repo.
Any ideas?
/Viktor
I'm running alfresco community 4.2.e on a machine running Red Hat Enterprise Linux Server release 6.4.
It's a default alfresco setup apart from openjdk 1.7 instead of the one in the installer.
I am reading and writing documents form/to alfresco using apache chemistry OpenCMIS.
Everything seems to be working fine until I upload a document, because after that every attempt to retrieve a document takes >20 secs. Every read seems to get stuck on the db-call because a new postgresql process is started and eats lots of CPU and takes forever to finish.
Moreover have I also encountered the java-process running tomcat to for no obvious reason start using 150-200% cpu for hours straight (until I finally restart the service).
I have about 10 to 50 documents (images + thumbnail renditions) in my repo.
Any ideas?
/Viktor
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 12:51 PM
Let's start with your hardware. Can you give details of what equipment you have Alfresco running on? You should have 4GB of RAM as a minimum. Does your HDD have a decent rpm? Raid Type? All that good stuff. CPU?
If you just have a vanilla install then I don't see how it would be using that much cpu at a time.
We have our install on a VM with 8GB of memory. The cpu never gets above 20-30% except on backups….So not sure where things are going for you.
If you just have a vanilla install then I don't see how it would be using that much cpu at a time.
We have our install on a VM with 8GB of memory. The cpu never gets above 20-30% except on backups….So not sure where things are going for you.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2014 04:37 AM
It's a virtual machine running on ms hyper-v. Dual core xeon @ 2.3 ghz, 8gb ram. Not sure about hdd and raid specs though but it should be something decent.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2014 10:09 AM
I think I've found the troublemaker.
I have a script which is executed when a new image is uploaded which contains:
<javascript>
var rend = renditionService.createRenditionDefinition("cm:thumbnail", "imageRenderingEngine");
rend.parameters["resizeToThumbnail"] = true;
rend.parameters["xsize"] = 200;
rend.parameters["ysize"] = 200;
rend.parameters["maintainAspectRatio"] = true;
rend.execute(document);
</javascript>
This seem to kill the server, although it's running fine on my windows hosted alfresco.
Is there something wrong with my script?
I have a script which is executed when a new image is uploaded which contains:
<javascript>
var rend = renditionService.createRenditionDefinition("cm:thumbnail", "imageRenderingEngine");
rend.parameters["resizeToThumbnail"] = true;
rend.parameters["xsize"] = 200;
rend.parameters["ysize"] = 200;
rend.parameters["maintainAspectRatio"] = true;
rend.execute(document);
</javascript>
This seem to kill the server, although it's running fine on my windows hosted alfresco.
Is there something wrong with my script?
