Hanging threads stuck at ImageTransformationsTask are flooding the log files

Your rating: None Average: 2.3 (3 votes)

Hanging threads stuck at ImageTransformationsTask are flooding the log files

Symptoms

After updating OX server from version 7.8-Rev9 to version 7.8-Rev10 the following error message will be logged many hundreds of times per minute :

"Request with age 1728946ms exceeds max. age of 60000ms.Request's properties:
__threadId=22253
com.openexchange.ajax.action=GET
com.openexchange.ajax.module=halo/contact/picture
com.openexchange.grizzly.method=GET
com.openexchange.grizzly.queryString=email=info%40example.com&folder=390&id=207&width=64&height=64&scaleType=cover&uniq=1567890
com.openexchange.grizzly.remoteAddress=127.0.0.1
com.openexchange.grizzly.remotePort=65895
com.openexchange.grizzly.requestURI=/ajax/halo/contact/picture
com.openexchange.grizzly.serverName=test.example.com
com.openexchange.grizzly.servletPath=/ajax/halo/contact/picture
com.openexchange.grizzly.threadName=OXWorker-0010047
com.openexchange.grizzly.userAgent=Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/47.0.2526.73 Safari/537.36
com.openexchange.request.trackingId=9d9c59edf436eda345234edf
com.openexchange.http.requestwatcher.osgi.services.RequestTrace: tracked request
at sun.misc.Unsafe.park(Native Method)"
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
at
com.openexchange.tools.images.transformations.ImageTransformationsTask.getImage(ImageTransformationsTask.java:153)

Solution

To manually fix the issue change the default value for transformations.waitTimeoutSeconds from "10" to "0":


/opt/open-xchange/etc/server.properties:

com.openexchange.tools.images.transformations.waitTimeoutSeconds=0

After changing the value the OX-service must be restarted for the new value to take effect.

Changes will be automatically implemented with the next public Patch for the OX backend on the 7th of December 2015.

Open-Xchange AG | Impressum