2011/9/28 Israel Sotomayor Azcuna <[email protected]>
> Hi! First of all sorry about my english.
>
> I have somes problems with the ScaleMTSlave.
>
> ** -> 1 problem
>
> When I run ScaleMTSlave:
>
> me@me-vb:~/Escritorio/ScaleMTSlave-1.0$ sudo ./run-scaleMT.sh
> localhost
> 28/09/2011 08:15:39 - INFO - Main -Started RMI Registry on port 1099
>
> 28/09/2011 08:15:39 - INFO - Main -Server information. Cpu capacity:
> 10000 Max capacity per daemon: 10000 Memory capacity: 288
> 28/09/2011 08:15:39 - INFO - Main -Remote object ScaleMTSlave bound
> OK. Name: ScaleMTSlave. Port: 1331
> 28/09/2011 08:15:39 - INFO - Main -Server ready: registered with
> request router
> 28/09/2011 08:17:42 - ERROR - Daemon$StatusReader -Daemon 0 frozen
> org.scalemt.rmi.exceptions.DaemonDeadException
> at
> org.scalemt.daemon.Daemon$EngineReader.run(Daemon.java:320)
> at java.lang.Thread.run(Thread.java:636)
> 28/09/2011 08:17:42 - ERROR - Daemon -Unexpected exception while
> translating
> org.scalemt.rmi.exceptions.DaemonDeadException
> at
> org.scalemt.daemon.Daemon$EngineReader.run(Daemon.java:320)
> at java.lang.Thread.run(Thread.java:636)
>
> The error happens when i make a request like this one:
> http://localhost:8080/ScaleMTRouter/json/translate?q=hello&langpair=en|es
>
>
Could you please show us the contents of the file
"$PREFIX/share/apertium/modes/en-es-null.mode"? It seems that the Apertium
process dies each time you try to translate a text with it.
In addition, have you updated the configuration file "*
ScaleMTSlave-1.0/conf/translation-engines.xml*" to include the right
location of the Apertium modules?
** -> 2 problem
>
> When i was installing the ScaleMTSlave I received a message with an error
> like “can’t find apertium-module” I think it’s in the
> InstallApertiumAndPairs.sh file on this line “cp apertium-module/*
> $REAL_PREFIX/bin” What’s apertium-modules? And what it does? I don’t find
> anything about that on the documentation.
>
> Don't worry about that, it was an error in the installation script which I
have just fixed.
** -> 3 problem
>
> When I start the Slave it ask about "max_memory_per_daemon" and then die
>
> WARN - Daemon -Exception reading max_memory_per_daemon
> java.lang.NumberFormatException: null
> at java.lang.Long.parseLong(Long.java:404)
> at java.lang.Long.parseLong(Long.java:483)
> at org.scalemt.daemon.Daemon.<init>(Daemon.java:691)
> at
> org.scalemt.daemon.DaemonFactory.newDaemon(DaemonFactory.java:554)
> at
>
> org.scalemt.main.TranslationEnginePool.startDaemon(TranslationEnginePool.jav
> a:719)
> at
>
> org.scalemt.main.TranslationEnginePool.computeServerCpuCapacity(TranslationE
> nginePool.java:458)
> at
>
> org.scalemt.main.TranslationEnginePool.guessServerInformation(TranslationEng
> inePool.java:383)
> at org.scalemt.main.Main.startSlave(Main.java:387)
> at org.scalemt.main.Main.main(Main.java:309)
>
> So to solve it, I add to the configuration.properties the variable
> "max_memory_per_daemon = 256" with the value 256, but I'm not sure if
> that’s
> the correct way
>
>
I would choose a higher value. It is the maximum amount of memory a daemon
can consume. If it reaches that limit, it is automatically killed. You can
safely delete the entry in the "configuration.properties" file, as a
convenient default value is used it the entry is not found.
> Thanks in advance!
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
Regards,
Víctor
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff