After several heap dump and comparison, I found the culprit is the
included groovy template engine. And there is a recent bug(13/Nov/2008)
fix for it.
http://jira.codehaus.org/browse/GROOVY-3147
So, if any one is using Play! in production, you may need to upgrade the
groovy engine to the latest 1.5.8 if possible.
Chris
Hum, which exact version of Play! do you use ? One of my site (www.shigeta.fr
) using the stable3 release is runnning since 3 month and still use 48Mo of memory. And the stable3 uses the groovy 1.5.6 too. So perhaps it's a problem with a specific version of Play! ... 2009/1/17 Chris Lu <chri...@gmail.com>
) using the stable3 release is runnning since 3 month and still use 48Mo of memory. And the stable3 uses the groovy 1.5.6 too. So perhaps it's a problem with a specific version of Play! ... 2009/1/17 Chris Lu <chri...@gmail.com> <chri...@gmail.com> I have put up my site up and running for a while, and found the memory usage just keep crawling up. After several heap dump and comparison, I found the culprit is the included groovy template engine. And there is a recent bug(13/Nov/2008) fix for it.http://jira.codehaus.org/browse/GROOVY-3147
So, if any one is using Play! in production, you may need to upgrade the groovy engine to the latest 1.5.8 if possible. Chris
--~--~---------~--~----~------------~-------~--~----~ Vous avez reçu ce message, car vous êtes abonné au groupe Groupe "play-framework" de Google Groupes. Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse play-fr...@googlegroups.com Pour résilier votre abonnement à ce groupe, envoyez un e-mail à l'adresse play-framewor...@googlegroups.com Pour afficher d'autres options, visitez ce groupe à l'adresse http://groups.google.com/group/play-framework?hl=fr -~----------~----~----~----~------~----~------~--~---
Chris
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/mina/common/IoFilter
Caused by: java.lang.ClassNotFoundException: org.apache.mina.common.IoFilter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Reason 1: the java.nio.DirectByteBuffer problem.
Reason 2: There is another mina bug also, which is fixed already,
https://issues.apache.org/jira/browse/DIRMINA-633
Chris
16:20:03,499 ERROR ~ Caught in Server !
org.apache.mina.filter.codec.ProtocolDecoderException:
java.lang.IllegalArgumentException: Failed to decode the url-encoded
content. (Hexdump: 50 4F 53 54 20 2F 67 75 65 73 74 73 61 76 65 2E 61 73
70 20 48 54 54 50 2F 31 2E 30 0D 0A 48 6F 73 74 3A 20 66 6F 72 75 6D 2E
73 68 75 71 69 61 6E 6A 69 2E 63 6F 6D 0D 0A 58 2D 52 65 61 6C 2D 49 50
3A 20 31 32 32 2E 32 33 30 2E 36 39 2E 32 32 0D 0A 58 2D 46 6F 72 77 61
72 64 65 64 2D 46 6F 72 3A 20 31 32 32 2E 32 33 30 2E 36 39 2E 32 32 0D
0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 63 6C 6F 73 65 0D 0A 41 63 63 65
70 74 3A 20 69 6D 61 67 65 2F 67 69 66 2C 20 69 6D 61 67 65 2F 78 2D 78
62 69 74 6D 61 70 2C 20 69 6D 61 67 65 2F 6A 70 65 67 2C 20 69 6D 61 67
65 2F 70 6A 70 65 67 2C 20 61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64
2E 6D 73 2D 70 6F 77 65 72 70 6F 69 6E 74 2C 20 61 70 70 6C 69 63 61 74
69 6F 6E 2F 76 6E 64 2E 6D 73 2D 65 78 63 65 6C 2C 20 61 70 70 6C 69 63
61 74 69 6F 6E 2F 6D 73 77 6F 72 64 2C 20 61 70 70 6C 69 63 61 74 69 6F
6E 2F 78 2D 73 68 6F 63 6B 77 61 76 65 2D 66 6C 61 73 68 2C 20 2A 2F 2A
0D 0A 52 65 66 65 72 65 72 3A 20 68 74 74 70 3A 2F 2F 66 6F 72 75 6D 2E
73 68 75 71 69 61 6E 6A 69 2E 63 6F 6D 2F 67 75 65 73 74 73 61 76 65 2E
61 73 70 0D 0A 41 63 63 65 70 74 2D 4C 61 6E 67 75 61 67 65 3A 20 7A 68
2D 63 6E 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20 61 70 70 6C 69
63 61 74 69 6F 6E 2F 78 2D 77 77 77 2D 66 6F 72 6D 2D 75 72 6C 65 6E 63
6F 64 65 64 0D 0A 50 72 6F 78 79 2D 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20
4B 65 65 70 2D 41 6C 69 76 65 0D 0A 55 73 65 72 2D 41 67 65 6E 74 3A 20
4D 6F 7A 69 6C 6C 61 2F 34 2E 30 20 28 63 6F 6D 70 61 74 69 62 6C 65 3B
20 4D 53 49 45 20 36 2E 30 3B 20 57 69 6E 64 6F 77 73 20 4E 54 20 35 2E
31 3B 20 41 6C 65 78 61 20 54 6F 6F 6C 62 61 72 29 0D 0A 43 6F 6E 74 65
6E 74 2D 4C 65 6E 67 74 68 3A 20 33 32 34 0D 0A 50 72 61 67 6D 61 3A 20
6E 6F 2D 63 61 63 68 65 0D 0A 63 4F 4F 6B 49 65 3A 20 0D 0A 0D 0A 67 75
65 73 74 6E 61 6D 65 3D B7 BD BD DC 26 70 61 73 73 77 6F 72 64 3D 26 73
68 65 6E 67 66 65 6E 3D 25 43 44 25 46 38 25 44 33 25 44 31 26 66 72 6F
6D 3D B7 BD BD DC 26 65 6D 61 69 6C 3D 66 61 6E 67 6A 69 65 6A 69 65 40
31 36 33 2E 63 6F 6D 26 68 6F 6D 65 70 61 67 65 3D 68 74 74 70 3A 2F 2F
77 77 77 2E 6E 6F 71 69 61 6E 2E 63 6E 26 6F 69 63 71 3D 36 32 35 34 31
38 35 26 73 65 6C 65 63 74 46 6F 6E 74 3D 25 44 31 25 41 31 25 44 34 25
46 31 25 44 37 25 44 36 25 43 43 25 45 35 26 73 65 6C 65 63 74 43 6F 6C
6F 75 72 3D 30 26 73 65 6C 65 63 74 62 67 43 6F 6C 6F 75 72 3D 30 26 73
65 6C 65 63 74 3D 25 44 37 25 44 36 25 42 41 25 43 35 26 53 75 62 6D 69
74 3D 2B 25 42 37 25 41 32 2B 25 42 31 25 45 44 2B 26 63 6F 6E 74 65 6E
74 3D 5B 55 52 4C 3D 68 74 74 70 3A 2F 2F 77 77 77 2E 6A 74 79 69 6E 67
2E 63 6E 5D BB C6 C9 AB B5 E7 D3 B0 5B 2F 55 52 4C 5D 5B 55 52 4C 3D 68
74 74 70 3A 2F 2F 77 77 77 2E 6E 6F 71 69 61 6E 2E 63 6E 5D C2 D7 C0 ED
B5 E7 D3 B0 5B 2F 55 52 4C 5D)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:180)
at
org.apache.mina.common.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:405)
at
org.apache.mina.common.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:40)
at
org.apache.mina.common.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:823)
at
org.apache.mina.common.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:607)
at
org.apache.mina.common.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:405)
at
org.apache.mina.common.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:399)
at
org.apache.mina.common.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:434)
at
org.apache.mina.common.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:396)
at
org.apache.mina.common.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:388)
at
org.apache.mina.common.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:43)
at
org.apache.mina.common.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:706)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Failed to decode the
url-encoded content.
at
org.apache.asyncweb.common.DefaultHttpRequest.setContent(DefaultHttpRequest.java:288)
at
org.apache.asyncweb.common.HttpRequestDecodingStateMachine$3$3.finishDecode(HttpRequestDecodingStateMachine.java:187)
at
org.apache.mina.filter.codec.statemachine.FixedLengthDecodingState.decode(FixedLengthDecodingState.java:58)
at
org.apache.mina.filter.codec.statemachine.DecodingStateMachine.decode(DecodingStateMachine.java:75)
at
org.apache.mina.filter.codec.statemachine.DecodingStateProtocolDecoder.decode(DecodingStateProtocolDecoder.java:65)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:170)
... 15 more
Caused by: java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
at
org.apache.mina.common.AbstractIoBuffer.getString(AbstractIoBuffer.java:1121)
at
org.apache.asyncweb.common.DefaultHttpRequest.setContent(DefaultHttpRequest.java:286)
... 20 more