我在这样的 ANT 脚本中从 CloverETL 调用 runGraph 类
<java classname="org.jetel.main.runGraph" fork="true" failonerror="true">
<arg value="${canadapostdir}/metadata/CanadaPostADDTypes34.grf"/>
<classpath>
<pathelement path="${ear.lib}/clover.jar" />
<pathelement path="${ear.libext}/oracle.jdbc/ojdbc6.jar" />
<pathelement path="${ear.libext}/mysql.jdbc/mysql-connector-java-3.0.15-ga-bin.jar" />
<fileset dir="${ear.lib}">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
当三叶草启动时,我可以在日志中看到:
[java] [Clover] starting WatchDog thread ...
[java] [WatchDog] Thread started.
[java] [WatchDog] Running on 16 CPU(s) max available memory for JVM 3005703 kB
[java] [Clover] Initializing phase: 0
[java] all edges initialized successfully...
[java] initializing nodes:
[java] INPUT ...OK
[java] TYPEFILTER ...OK
[java] REF ...OK
[java] OUTPUT ...OK
[java] [Clover] phase: 0 initialized successfully.
[java] [WatchDog] Starting up all nodes in phase [0]
[java] [WatchDog] INPUT ... started
[java] [WatchDog] TYPEFILTER ... started
[java] [WatchDog] REF ... started
[java] [WatchDog] OUTPUT ... started
[java] [WatchDog] Sucessfully started all nodes in phase!
我的问题是:如何让 clover 以超过 3005703 kB 的内存运行?该脚本正在运行的服务器上实际上有 100gig 的可用内存。
编辑:我知道我看到三叶草没有在单独的 jvm 上运行,并且我猜它使用了当前 JVM 实例上所有可用的空闲内存。我需要找到一种在单独的 jvm 上启动 clover 的方法,我可以通过 -Xms10240m -Xmx10240m。