Increasing Java maxHeapSize programatically in a xs script [message #559845] |
Mon, 20 September 2010 04:20 |
Badri Messages: 17 Registered: July 2009 |
Junior Member |
|
|
Champs,
I have a xs script that inherits the Icmd interface. It is a memory intensive script and requires more than 64M of heap space and I get the OutOfMemory error.
I would like to know if there is a programmatic way of increasing the Java Max heap size (equivalent on -Xmx option) in my script. I want to avoid having to change Java Control panel settings to change max heap size on every new machine I run the script.
I have gone thru the archives where MK_BLDOPTS is mentioned as way to increase the max heap size. However, this env variable is not defined in the package.mak generated for my package. Does xdc provide any interface to control java maxHeapSize at script launch time?
I have reproduced my screen output below:
D:\git_rep\ti\omx\omxutils\eventParse>xs ti.omx.omxutils.eventParse D:\Temp\profile_25thJun_1080i\vid_event.bin
Java Base:D:\tools_wtbu_base_omx\xdctools_3_20_01_51
Max memory = 63.5625
cmdr = xdc.tools.Cmdr.Instance#0 {
context = 0 {
}
tid = 0
socket = null
}
args = []#0 {
0 = D:\Temp\profile_25thJun_1080i\vid_event.bin
}
Regards
Badri
|
|
|
Powered by
FUDForum. Page generated in 0.03474 seconds