cancel
Showing results for 
Search instead for 
Did you mean: 

Java heap space error in XI repository

Former Member
0 Kudos

Hello gurus,

Lately we are experiencing extremely slow responses in the repository area. We are working on message mappings and when we tried to save the objects from the repository we received a Display Problem "java heap space". Any helps is greatly appreciated.

Thanks again,

Dng

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

We are experiencing the same problem. Did you guys solve this issue?

thanks,

Peter Livingstone

former_member9864
Participant
0 Kudos

Hi,

although the topic is answered: it would be also helpful to use another workaround. I remember that in one of my projects I have had the same problem as well. That's a message mapping between IDOC and JDBC structure. What I did is just to reduce the IDOC segments by creating a Z IDOC type on SAP ERP and taking the only useful segments with me on mapping. And afterwards no java heap size problem any more.

Well, if you cannot reduce your fat message types, java tuning might be the only option.

Regards,

Chen

Former Member
0 Kudos

hello Chen,

What is the java tuning you are referring to here?

I am in a similar situation and unable to reduce the fat message size. I have already tried increasing the RAM at the remote desktop to 8GB and increasing the maxheapsize in the JNLP to 7GB. But this has not helped.

Thanks

Diptee

thomas_peters2
Discoverer
0 Kudos

Hello,

please have a look at

1580914 - Java heap space OutOfMemoryError in the PI Repository

Regards

Thomas

Former Member
0 Kudos

Increase heap size to 2 GB

former_member181985
Active Contributor
0 Kudos

Hi Davidn,

May be you can try this.

First Close the Repository FrameWork Application.

Then from the main Exchange Infrastruture page (browser) instead opening Integration Repository link save the repository.jnlp to local directory say desktop.

Now open this file with any text editor. You fill see some XML tags. Identify this tag

<resources>
        <j2se version="1.4+" initial-heap-size="32m" max-heap-size="512m" />

You can change the max heap size according to your requirement. But this max heap size depends on certain factors such as Operating System as well on the hardware(32 bit or 64 bit) and also on the physical RAM you have from where you run IR. You can give up to 2 GB if it is windows OS. You can check SUN's official site for max heap sizes for different Operation Systems & hardwares.

e.g., for max-heap-size = 1 GB change the above tag value as follows.

<resources>
        <j2se version="1.4+" initial-heap-size="32m" max-heap-size="1024m" />

Save the JNLP file and open this file either by double clicking or by explicitly with Java Web Start application. In general the diretory structure for Java Web start application is "Drive>:\Program Files\Java\j2re1.4.2_XX\javaws\javaws.exe". But by default all JNLP files will be associated with Java Web Start when Java Web Start is installed.

Thanks,

Praveen Gujjeti.

Edited by: Praveen Gujjeti on Oct 6, 2008 7:41 PM

Former Member
0 Kudos

Thanks so much all for a quick response.

Praveen,

As I follow your instruction, I noticed that max-heap-size+"512m", but in the configure tool it shows Max heap size (in MB) is 1024? is there a different?

Thanks

Dng

former_member181985
Active Contributor
0 Kudos

Hi,

Config tool (ID) is nothing to do with Design tool (IR). Only Change the max heap size entry for respository JNLP and open the file with JAVA WEB START.

Check your machine (from where you are working on IR framework) how much RAM it has and also check the virtual memory.

Thanks,

Gujjeti.

Former Member
0 Kudos

Thanks everyone! I have rewarded points to everyone on this subject.

former_member181985
Active Contributor
0 Kudos

Can you close this thread if the problem is solved.

- Gujjeti

Former Member
0 Kudos

hi Praveen,

Nice thread its helped me a lot.

but i have one concern i am working now on DEV system.(i have created BPM. its very huge number of steps yesterday it was saved but today i did few changes now i am trying to save but it showing java heap space).

without closing that BPM , i opened sandbox system and i followed your instructions given in above thread.

with that file i can able to open Sandbox systems IR.

Then i tried to save DEV systems BPM, againit showing the same error.

Could you help me in this regard with out closing that BPM i need to save that.

Help me ASAP.

Thanks in advance,

Radhika

former_member181985
Active Contributor
0 Kudos

Hi Radhika,

As far as I know, without closing your current IR session (DEV System) it is not possible.

May be what you can do is, take screen shots for each of modification (BPM steps) you have done to the BPM in a word file, then close the IR session forcefully by ending the IR root process using task manager.

Reopen IR (by saving JNLP file and changing the memory settings) and use the screen shots to change the BPM according to your requirement.

- Gujjeti.

Former Member
0 Kudos

Hi,

As per the error analysis, it seems that the java heap space is low. So need to increase the heap size.

For XI, Usually the MaxThreadCount in ApplicationThreadManager needs to be set to 350.

Since XI Applications are quite memory intensive, MaxHeapSize & -Xms should be atleast 2048M. However, you could set it higher to 3G if there is enough physical memory/64 bit OS.

Check whether all java parameters are tuned correctly

Regards

Pullarao