Blogs

Limiting the number of cores for Alfresco Transformations

This is an Alfresco Tip taken from my test on Alfresco Honeycomb Edition (I will post some notes about this other day). The tip is related to limit the number of cores used by Alfresco transformation, preventing CPU throttling
 
In alfresco-global.properties set:
 
img.exe=/opt/alfresco/bin/limitconvert.sh
 
where the original script is:
 
#! /bin/bash

# This file is to limit the number of cores used by Alfresco transformation
# and prevent cpu throttling. The script limits ImageMagick convert to use less resources.
# Check the number of available cpu:s with
# cat /proc/cpuinfo | grep processor | wc -l
# If you have more, change to -c 0,1 if you have 4, -c 0,1,2 if you have 6 and so on.
# Check man taskset for more info.
# 
# Copyright 2013 Loftux AB, Peter Löfgren
# Distributed under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC BY-SA 3.0)
# -------

taskset -c 0 /usr/bin/convert $@
 

Más entradas de blog

Empaquetando aplicaciones java para MacOSX

A continuación voy a da algunas referencias que nos han ayudado en la automatización de la...

Linux commands to check your disk performance

Yesterday I read in Blyx.com, NAS or SAN, that is the question, in fact a usual question for...

Añadir comentarios