@waketi が動かなくなった

体調不良アルゴリズムがうまく動いたようだ! orz

以下のエラー。
UnsatisfiedLinkErrorなんて初めて見た。
なんだか色々言われているけど、メモリ不足?
ReservedCodeCacheSizeを増やせばいいのかな?

OpenJDK Client VM warning: CodeCache is full. Compiler has been disabled.
OpenJDK Client VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/libnet.so: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/libnet.so: failed to map segment from shared object: Cannot allocate memory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1667)
        at java.lang.Runtime.loadLibrary0(Runtime.java:840)
        at java.lang.System.loadLibrary(System.java:1047)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.InetAddress.<clinit>(InetAddress.java:234)
        at ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:30)
        at ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty(ContextUtil.java:39)
        at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:47)
        at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:273)
        at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
        at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:127)
        at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:40)
        at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52)
        at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
        at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
        at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
        at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
        at com.pokosho.bot.AbstractBot.<clinit>(AbstractBot.java:32)
com.pokosho.PokoshoException: java.lang.IllegalArgumentException: Tokenizer Class: net.java.sen.ja.JapaneseTokenizer is invalid.
        at com.pokosho.bot.AbstractBot.<init>(AbstractBot.java:54)
        at com.pokosho.bot.twitter.TwitterBot.<init>(TwitterBot.java:59)
        at com.pokosho.bot.twitter.TwitterBot.main(TwitterBot.java:301)
Caused by: java.lang.IllegalArgumentException: Tokenizer Class: net.java.sen.ja.JapaneseTokenizer is invalid.
        at net.java.sen.StringTagger.init(StringTagger.java:158)
        at net.java.sen.StringTagger.<init>(StringTagger.java:95)
        at net.java.sen.StringTagger.getInstance(StringTagger.java:133)
        at net.java.sen.StringTagger.getInstance(StringTagger.java:100)
        at com.pokosho.bot.AbstractBot.<init>(AbstractBot.java:52)
        ... 2 more
OpenJDK Client VM warning: Attempt to allocate stack guard pages failed.

同じくお困りの方を見つけた。真似る。

root@pokosho:~# cat /proc/meminfo
MemTotal:       786432 kB
MemFree:        521992 kB

root@pokosho:~# sysctl kernel.shmmax
kernel.shmmax = 33554432

# vi /etc/sysctl.conf
kernel.shmmax = 134217728

root@pokosho:~# sysctl kernel.shmmax
kernel.shmmax = 134217728

run!

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

orz

-Xmx128m

にして、無事動きました、とさ。

急に動かなくなったのは、単語の量が増えてきたからかな?
次同じ事態になったらお掃除を考えねばならないかもしれないな。