Urgent - XI Mapping Out Of Memory Exception

I am processing a 8 MB flat file which after content conversion blows up to a 33 MB file in XI. I have a Mapping program developed using the Graphical Mapping tool of XI. During the message processing i keep seeing the java.lang.OutOfMemoryError when i view the error in SXMB_MONI as well as the logs.
I have been reading the XI Tuning Guide as well as the J2EE tuning guide. Has anyone fixed a similar issue and can point me to the correct parameters to change in order to fix this error? I don't have time to change parameters by trial and error. I need specific answers to fix this issue urgently.
Currently we are on XI 3.0 SP15 and all the parameters are the default setup as per the XI installation.
Answers will be sincerely rewarded.
Thanks for your time.
-Hashim

Here are the existing parameters for our XI box. I do see the Server heap size as 1024, do I need to increase the dispatcher heap size as well? Also, do you see any other parameters that I need to change?
Sravya, I totally agree with the ABAP Mapping suggestion but as of now I have to get this to work, in future I will change this to use ABAP mapping.
<u><b>Dispatcher</b></u>
MaxHeapSize: 170
JavaParameters:
-Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Djco.jarm=1 -XX:NewSize=28m -XX:MaxNewSize=28m -XX:+DisableExplicitGC -Drdbms.driverLocation=/oracle/XXX/920_64/jdbc/lib/classes12.jar -Dsys.global.dir=/usr/sap/XXX/SYS/global/
<u><b>Server</b></u>
MaxHeapSize: 1024
Java Parameters:
-XX:MaxPermSize=128M -Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -Djco.jarm=1 -Dsun.io.useCanonCaches=false -XX:NewSize=170m -XX:MaxNewSize=170m -XX:MaxPermSize=192m -Djava.awt.headless=true -XX:PermSize=192m -XX:SurvivorRatio=2 -XX:TargetSurvivorRatio=90 -XX:SoftRefLRUPolicyMSPerMB=1 -Xms1024m -verbose:gc -XX:DisableExplicitGC -XX:PrintGCDetails -XX:PrintGCTimeStamps -XX:UseParNewGC -Drdbms.driverLocation=/oracle/XXX/920_64/jdbc/lib/classes12.jar -Dsys.global.dir=/usr/sap/XXX/SYS/global/
Thanks,
Hashim

Similar Messages

  • Getting out of memory exception while loading images in web browser control one by one in windows phone 8 silverlight application?

    Hi, 
    I am developing a windows phone 8 silver light application . 
    In my app I am displaying images in web browser control one by one , those images are the web links , the problem is after displaying 2 to 3 images I am getting out of memory exception .
    I searched for this exception how to over come , everybody are saying memory profiling ,..etc but really I dont know how to release the memory and how to clear the memory .
    In some sites they are adding this
    <FunctionalCapabilities>
    <FunctionalCapability Name="ID_FUNCCAP_EXTEND_MEM"/>
    </FunctionalCapabilities>
    by doing this am I free from out of memory exception?
    Any help ,
    Thanks...
    Suresh.M

    string HtmlString = "<!DOCTYPE html><html><head><meta name='viewport' content='width=device-width,initial-scale=1.0, user-scalable=yes' /></head>";
    HtmlString = HtmlString + "<body>";
    HtmlString = HtmlString + "<img src=" + source +" />";
    HtmlString = HtmlString + "</body></html>";
    innerpagebrowser.NavigateToString(HtmlString);
    that image source is the web link for example www.sss.com/files/xxx/123.jpg .
    Note this link is not real this is sample and image is of size 2071X3097
    Suresh.M

  • Oracle BPM installed  Java out-of-memory exception

    Hi,
    I have installed the oracle BPM software in the server have the Ram capacity 8 GB,Could you please suggest some of the do's and don't's to avoid the Java out-of-memory exception which normally appearing on the console of weblogic server.
    My Server details,
    Windows 2008 R2 64 bit, RAM 8 GB,
    The required BPM s/w I installed from the link below,
    http://www.oracle.com/technetwork/middleware/bpm/downloads/index.html?ssSourceSiteId=ocomen
    Thanks in advance for your help.
    Regards,
    Shyam
    Edited by: user13821489 on 06-Feb-2011 22:45

    I had to increase JVM xmx/maxperm in the "set*Env.sh" scripts in the directory where you start WLS. In my dev environment, deploying BAM & BPM together with the Admin server, I finally allocated 4GB max. Jdev.conf is also better if you allocate > 1GB - mine is 1.4GB. I also watch process memory. Multiple re-deployments in my development environment seem to increase the memory, even if I remove process instances and undeploy first. I don't understand the internals very well so perhaps it is behaving correctly, but restarting WLS frees the unused memory that I expected gc to reclaim.

  • URLStream.readBytes always throw out of memory exception (errorID=1000)

    When I try to load a file as 180MBytes by using URLStream.readBytes(). 
    In some PCs, it's OK.
    But in some PCs, there are always [out of memory] exception (errorID=1000) even such PC still had enough memory.
    For example:
       Total memory is 2G, current used is 1.43G, but URLStream.readBytes() still throw such exception.
    For file with little size such as 30M, there isn't such problem.
    Could any body give some suggestion?
    Best regards,
    Sourcecode is very simple like:
      var myStream:URLStream;
      var inputBytes: ByteArray = new ByteArray();
      ... do load ...
      // load by progressive event. I only deal progress load once, and ignore all later progressive load events.
      // for example first 500KBytes was read.
      myStream(inputBytes,inputBytes.length);
      // load again when all datas is loaded completely. For example, 180MBytes should be read.
      try {
        myStream(inputBytes,inputBytes.length);
      }  catch(e:*) {
        // warning log

    When I try to load a file as 180MBytes by using URLStream.readBytes(). 
    In some PCs, it's OK.
    But in some PCs, there are always [out of memory] exception (errorID=1000) even such PC still had enough memory.
    For example:
       Total memory is 2G, current used is 1.43G, but URLStream.readBytes() still throw such exception.
    For file with little size such as 30M, there isn't such problem.
    Could any body give some suggestion?
    Best regards,
    Sourcecode is very simple like:
      var myStream:URLStream;
      var inputBytes: ByteArray = new ByteArray();
      ... do load ...
      // load by progressive event. I only deal progress load once, and ignore all later progressive load events.
      // for example first 500KBytes was read.
      myStream(inputBytes,inputBytes.length);
      // load again when all datas is loaded completely. For example, 180MBytes should be read.
      try {
        myStream(inputBytes,inputBytes.length);
      }  catch(e:*) {
        // warning log

  • Large DataTable causes out of memory exception

    Hello Support 
    We have a datatable that returns 112970 records and have 51 columns.
    When we try generate an xls file or display data result in grid view than "System Out of memory exception" is thrown.
    OS : Windows 2003 Enterprise 32 Bit
    HP DL380 G4
    CPU 2x3.6GHZ
    6 GB RAM
    Can you help us to find a resolution to this issue?
    Thank you
    Shrenik
    Maurice

    Thanks for reply.
    1> .XLXS format allows us >= 133000 records in spread sheet some times and some times it throws Exception of type 'System.OutOfMemoryException'.
    2> We are using asp.net gridview.
    Exception:
     ExceptionObject : Message : Exception of type 'System.OutOfMemoryException' was thrown.
    Data : System.Collections.ListDictionaryInternal
    InnerException : Nothing
    TargetSite : System.String ToBase64String(Byte[], Int32, Int32, System.Base64FormattingOptions)
    StackTrace :    at System.Convert.ToBase64String(Byte[] inArray, Int32 offset, Int32 length, Base64FormattingOptions options)
       at System.Web.UI.ObjectStateFormatter.Serialize(Object stateGraph, Purpose purpose)
       at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter2.Serialize(Object state, Purpose purpose)
       at System.Web.UI.Util.SerializeWithAssert(IStateFormatter2 formatter, Object stateGraph, Purpose purpose)
       at System.Web.UI.HiddenFieldPageStatePersister.Save()
       at System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state)
       at System.Web.UI.Page.SaveAllState()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) HelpLink : Nothing Source : mscorlib HResult : -2147024882
    Please see below code for more information.
        protected void Button1_Click(object sender, EventArgs e)
            try
                DataTable _dt = GetDataFromDB();
                ViewState["dtQueryResults"] = _dt;
                BindgvQueryResults();
                messageLabel.Text = "";
            catch (Exception ex)
                messageLabel.Text = "Query execute error: " + ex.Message;
        private void BindgvQueryResults()
            if (ViewState["dtQueryResults"] != null)
                DataView _dv = ((DataTable)ViewState["dtQueryResults"]).DefaultView;
                if (ViewState["gvQRSortExpression"] != null && ViewState["gvQRSortDirection"] != null)
                    _dv.Sort = ViewState["gvQRSortExpression"].ToString() + ViewState["gvQRSortDirection"].ToString();
                gvQueryResults.DataSource = _dv;
                gvQueryResults.DataBind();
    private DataTable GetDataFromDB()
            SqlCommand _Cmd = null;
            SqlConnection _Con = null;
            try
                _Con = DBInteraction.InstantiateConnection();
                _Cmd = new SqlCommand();
                _Cmd.Connection = _Con;
                _Cmd.CommandTimeout = 300;
                if (_Con.State != ConnectionState.Open)
                    _Con.Open();
                try
                    _Cmd.CommandText = CriteriaBuilder1.QueryTransformer.Sql;
                catch(NullReferenceException)
                    throw new ApplicationException("Error message.");
                if(string.IsNullOrEmpty(CriteriaBuilder1.QueryTransformer.Sql))
                    throw new ApplicationException("This query does not have any text. Please add views in the query and try again.");
                _Cmd.CommandType = CommandType.Text;
                DataTable _dt = new DataTable();
                SqlDataAdapter adaPTer = new SqlDataAdapter(_Cmd);
                adaPTer.AcceptChangesDuringFill = false;
                adaPTer.Fill(_dt);
                if (_dt.Rows.Count == 0)
                    throw new ApplicationException("Your request did not return any results.");
                return _dt;
            catch (Exception ex)
                throw ex;
            finally
                if (_Con.State == ConnectionState.Open)
                    _Con.Close();
    Maurice

  • Large Bitmaps create out of memory  exception

    Hello,
    I try to generate a "BufferedImage" from a Windows Bitmap file ( xxxx.BMP ) .
    I can read and generate relatively images from relatively small files (e.g. 852x626 pixels works fine),
    but if it comes to larger images, I get an out of memory exception.
    Has anybody an idea how to convince Java to read also large BMP image files.
    If I create an awt "Image" even large images (eg 1200x5000 pixels are generated).
    But unfortunately I have found no way to convert an "Image" to a "BufferedImage" and
    only "BufferedImage" offers all the processing methods needed.
    This is the code snippet I wrote:
    ------------ start of code snippet -----------------------------------------------------
    try {
    DataBufferInt dbBMPInt = new DataBufferInt(nwidth*nheight);
    System.out.println("DataBufferInt = "+dbBMPInt);
    int [] bitMasks = new int[3];
    bitMasks[0] = (int)0xff<<16;
    bitMasks[1] = (int)0xff<<8;
    bitMasks[2] = (int)0xff;
    SinglePixelPackedSampleModel spSM = new SinglePixelPackedSampleModel(DataBuffer.TYPE_INT,nwidth,nheight,bitMasks);
    System.out.println("SinglePixelPackedSampleModel = "+spSM);
    WritableRaster bmpRaster = WritableRaster.createWritableRaster((SampleModel) spSM, (DataBuffer) dbBMPInt, new Point(0,0));
    System.out.println("WritableRaster = "+bmpRaster);
    bmpImage = new BufferedImage(nwidth,nheight,BufferedImage.TYPE_3BYTE_BGR);
    System.out.println("BufferedImage = "+bmpImage);
    bmpImage.setData(bmpRaster);
    catch (Exception exCrBm)
    { /* 001 start catch */
    exCrBm.printStackTrace ();
    } /* 001 end catch */
    ----------------------------------------------- end of code snippet --------------------
    and this is the generated output.
    File type is :BM
    Size of file is :1600110
    Size of bitmapinfoheader is :40
    Width is :852
    Height is :626
    Planes is :1
    BitCount is :24
    Compression is :0
    SizeImage is :1600056
    DataBufferInt = java.awt.image.DataBufferInt@1774b9b
    SinglePixelPackedSampleModel = java.awt.image.SinglePixelPackedSampleModel@8080b54
    WritableRaster = IntegerInterleavedRaster: width = 852 height = 626 #Bands = 3 xOff = 0 yOff = 0 dataOffset[0] 0
    BufferedImage = BufferedImage@b9e45a: type = 5 ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@3ef810 transparency = 1 has alpha = false isAlphaPre = false ByteInterleavedRaster: width = 852 height = 626 #numDataElements 3 dataOff[0] = 2
    Any help appreciated
    Regards
    Wolfgang

    Increase your maximum heap memory size.
    Se -Xmx parameter of java.exe
    Have a nice programming day,
    Jos�.

  • Getting an Out of memory exception while validating XML against XSD

    Hello friends,
    I am getting an Out Of Memory exception while validating my XML against a given XSd which is huge.
    SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
            saxParserFactory.setValidating(true);
              SAXParser saxParser = saxParserFactory.newSAXParser();
             saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
             saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",new File("C:/todelxsd.xsd")); as u may see the darkened code. this basically Loads the XSD in Memmory , and JVM throws an out of Memory exception. is there any other way round of validating an XML against an XSD where i dont have to load my XSD if not then kindly let me know the solution for above problem .
    Thanks.

    Yes, but increasing the heap size is a temporary solution , isnt there a way where the XML can be validated against an XSD without having to load XSD in memory

  • Getting an out of memory exception while validating my XML against a XSD

    Hello friends,
    I have asked this question in following thread too. Pasting it again here just to saye your time
    http://forum.java.sun.com/thread.jspa?threadID=690812&tstart=0
    I am getting an Out Of Memory exception while validating my XML against a given XSd which is huge.
    SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
            saxParserFactory.setValidating(true);
              SAXParser saxParser = saxParserFactory.newSAXParser();
             saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
             saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",new File("C:/todelxsd.xsd")); as u may see the darkened code. this basically Loads the XSD in Memmory , and JVM throws an out of Memory exception. is there any other way round of validating an XML against an XSD where i dont have to load my XSD if not then kindly let me know the solution for above problem .
    Thanks.

    Yes, but increasing the heap size is a temporary solution , isnt there a way where the XML can be validated against an XSD without having to load XSD in memory

  • Out of memory exception in win2kServer

    I have written a JAVA program to read an AutoCAD DXF file and grapgically display the contents as in AutoCAD. Whwn i try to pass a particular file ( say 15MB)
    the JVM gives out of memory exception in Win2k Advance Server ( it takes about 70MB ) before throwing the error.
    This machine has 256 mb , but in another machine whivh runs win2K profesional with128Mb opens the file without any error nd only consumes 35MB.
    I use the same JVM in both machines( jdk1.3.0)
    is this because of any bugs in resource allcation in the win2k Server

    Have you added the -Xmx command line option to expand the default amount of memory that the JVM is allowed to allocate? Run 'java -X' for help

  • Out of Memory exception

    Hi All,
    I am using Weblogic server 10.3.2 . when 3 to 5 people hitting server after some time it is giving out of memory Exception ,even i assigned memory parameters maxPermSize:1024 then also i am getting same error.
    Application developed using Jdeveloper11g.
    Can you please help me figure out the problem.
    Thanks and Regards
    Sreedhar

    take a heap dump and use Eclipse MAT to examine the content of the heap
    Only if you understand the kind of objects which fill your heap you can solve your problem.
    If you use JRockit you can enable oomdiagnostics, basically a post mortem heap dump at the moment the OOM error occurred.
    Often it is sufficient to look at the code you are executing: do you have for loops who instantiate objects and put them into a Collection?

  • Oracle.jdbc.driver.T4CPreparedStatement causing out of memory exception

    I am using oracle spatial 11.2.0.3 g.
    I am getting out of memory exception on a process.
    I analyzed the heap dump using OOMemory analyzer and figured out  oracle.jdbc.driver.T4CPreparedStatement keeping 73%  of the heap space.
    Is oracle expanding the SPARQL queries in java side or keeping the results in cache.
    How to solve it ?

    Hi,
    We will need a re-producible test case (preferably small) to figure out why you are getting out of memory. You can send it to Oracle Support or email me at alan dot wu at oracle dot com.
    Jena Adapter does not cache SPARQL query results on the Java side. The T4CPreparedStatement is not even in Jena Adapter's
    code path or RDF's code path.
    Thanks,
    Zhe Wu

  • Download Servlet throwing Out Of Memory Exception

    I am trying to download file of more than 500 mb through servlet but getting out of memory exception .
    Before downloading i am zipping that huge file .
    try {
         String zipFileName = doZip(file);
          file =null;
          System.gc();
          File inputFile = new File(zipFileName);
          InputStream fileToDownload = new FileInputStream(
                                            inputFile);
           response.setContentType("application/zip");
         response.setHeader("Content-Disposition","attachment; filename=\""
                                                      + fileName.replaceAll("tmx", "zip")
                                                                .concat("\""));
         response.setContentLength(fileToDownload.available());
         byte buf[] = new byte[BUF_SIZE];
         int read;
         while ((read = fileToDownload.read(buf)) != -1) {
                   outs.write(buf, 0, read);
              fileToDownload.close();
                   outs.flush();
                                  outs.close();
    }catch(Exception e ) {
      //Getting out of memory.
    }Please suggest solution for this .

    cotton.m wrote:
    My zip suggestion was as follows.
    Take the file. Do not set the Content length header. Do set the Content encoding header to gzip. Create a GZIP output stream using the servlet output stream. Read the unzipped file in and output it through the gzip output stream.
    This cuts out one full cycle of file reading and writing from what you are doing currently.Thanks for u r reply
    InputStream fileToDownload = new FileInputStream(
                                            file);
    response.setContentType("application/gzip");
    response.setHeader("Transfer-Encoding", "chunked");
    response.setContentLength((int) file.length());
    GZIPOutputStream gzipoutputstream = new GZIPOutputStream(outs);
    byte buf[] = new byte[BUF_SIZE];
    int read;
    while ((read = fileToDownload.read(buf)) != -1) {
         gzipoutputstream.write(buf, 0, read);
    fileToDownload.close();
    outs.flush();
    outs.close();I made changes accordingly . Please provide u r view on this .

  • How to overcome a "System out of memory exception"?

    Hi,
    As i am running my program , I get (sometimes) an out of memory exception.
    I don't know exactly why because I am always doing the same thing so if I get this exception once It should always be so... (of course, as I am trying , no other program is running on my computer! ).
    anyway.
    I have 3 questions:
    1) Do you know how to eliminate this error ?
    (I don't mind if the time of execution is longer)
    2) I have Win XP, do you think that using a software to build ".exe" files can change the problem ? If so, have you heard about a simple 'one' (I downloaded JET Excelsior, but it seems rather complicated to parametrize)
    3) (last but not least) Can someone explain to me WHY there is this type of exception ( I would have thought that when "memory is full", then there is a swap, and the program doesn't stop !
    I know there is a lot of questions in one ! ( altough I tried to be short)
    Thanks

    In answer to your third question, the error occurs when
    the JVM runs out of memory, not the OS. Since the OS
    controls swapping the fact that the memory space
    assigned to the JVM is running low won't cause
    swapping to take place. The solution is either a) use
    less space by reducing what you have loaded at any
    given time or b) increase the amount of memory
    available to the JVM. You can user the -Xms, -Xmx and
    -Xss switches to increase the amount of memory
    available.
    Mark

  • System.out of memory exception

    I am running a TestStand sequence, using the .NET adaptor I am creating a class, and calling methods of a Class Library I created in VB.NET. I tested my class library in VB.NET and everything works in that environment. The sequence I call is pretty simple,
    create an instance of my class, then
    call a method that setups and initializes a camera
    call a method that runs through the tests of a test sequence
    The first pass of the sequence, it runs, the second pass of the sequence, whether in a For loop or the entire TestStand Sequence started again, it initializes the camera, but the second sequence, TestStand reports a system.out of memory exception in an underlying assembly/dll of my dll. But, when I call my dll from a .exe I made to test my dll, it works fine.
    Thanks

    Thanks for you reply.
    I am calling the setup and initialization of the camera once; it is the calling the method that runs a sequence of tests that I am repeating calls to and subsequently failing on the second call. The interesting thing is if I close out of TestStand completely after the first run. Then run my TestStand sequence again, it reportsd the same error. It seems something is not being released, or cleared, or something. Keep in mind, I am only getting this with TestStand, I do not get it when I run a test .exe that calls my dll. I since have tested calling my .exe in TestStand that calls my DLL and that works. The problem is clearly in using TestStand to create the class and call the methods.
    Thanks

  • Wow! out of memory exception???

    public void actionPerformed(ActionEvent e){
              //gets the text out of the button pressed
              String x = e.getActionCommand();
              //gets the last digit out of the text
              char y = x.charAt(x.length()-1);
              q_send.enqueue(y);
              while(!q_send.isEmpty()){
              //case where its still moving
                   if(!r.isMoving()){
                        y = (Character) q_send.dequeue();
                        move(y);
                   else{     
                        //memorise the locations
                        q_send.enqueue(y);
         }gives a queue out of memory exception... can anyone rectify the problem?

    actionPerformed right? so when i activate an action
    event, i am supposed to "move" a graphic. However, i
    cannot input a new location when i am "moving". So i
    have to memorise the new locations in a queue. The
    problem is i do not know when should i invoke the
    move of new locations. Clear enough?I'd say that you should change it so the graphic knows where it's supposed to move when the "move" event is fired.
    another thing worth thinking about is a custom event/listener pair that would alert your model when new location is set event occurs. that's when the move can sensibly take place.
    the action event in this case should be the one that tells the graphic to move, and it should know where the next location needs to be.
    %

Maybe you are looking for

  • Maximum hdd size for T60

    I have a T60 type:8744-5BU. I have read on Levono that 160gb is the largest  hdd that is compatible with this unit. Will any 2.5" ide drive work?  And what is the SATA that is in the device manager. Will this system use a SATA drive also?  I have dow

  • REMOTE QUERY ESTIMATED TIME OF COMPLETION

    HI,   I am running a query on which does REMOTE INNER JOIN and the query is taking forever. I am trying to figure out when the query would complete. Estimated Completion time is set to 0 from the dynamic view. I don't have the DB OWNER permission to

  • How to view synchronous messages in sxmb_moni

    Hello, I have set the following parameters in sxmb_adm and still couldn't see the messages in sxmb_moni. Any help is appreciated. ::RFCADAPTER     ::      LOGGING       --->     3 ::RUNTIME     :: LOGGING     --->     1 LOGGING_PROPAGATION  --->1 LOG

  • Crashing Report for video playing

    Many people are confused when the Adobe Flash plugin keeps crashing in Firefox. Instead of showing some animations or videos, it keeps saying that The Adobe Flash plugin has crashed, Reload the page to try again. My downloaded flash player does not w

  • Data control binding to soap in/out for wsdl

    hi, i am a new to jdeveloper. i did fine but here i am stuck at a stage. i see whole structure for the wsdl document. simply i want to know how can i make(bind) a user input data bound control on jsp form. where user enter information. it goes to web