Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » Increasing Java maxHeapSize programatically in a xs script(increasing java max heap size)
Increasing Java maxHeapSize programatically in a xs script [message #559845] Mon, 20 September 2010 04:20
Badri is currently offline BadriFriend
Messages: 17
Registered: July 2009
Junior Member
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 = {
context = 0 {

tid = 0
socket = null

args = []#0 {
0 = D:\Temp\profile_25thJun_1080i\vid_event.bin

Previous Topic:issue with packages having name linux
Next Topic:Increasing Java maxHeapSize programatically in a xs script
Goto Forum:

Current Time: Wed Jul 06 10:04:22 GMT 2022

Powered by FUDForum. Page generated in 0.01925 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top