Service Virtualization

Expand all | Collapse all

How to handle VSESizeExceededException

Jump to Best Answer
  • 1.  How to handle VSESizeExceededException

    Posted 07-12-2018 02:28 AM

    Hi Team,

     

    I'm getting the following error when recording java calls using an agent :

    com.itko.lisa.remote.vse.VSESizeExceededException
    at com.itko.lisa.remote.utils.XStreamFactory$1$1.run(XStreamFactory.java:135)
    at com.itko.lisa.remote.utils.XStreamFactory$1.toXML(XStreamFactory.java:122)
    […]
    Caused by: java.lang.IllegalStateException: Writer capacity as set by lisa.agent.transaction.max.graph.size or lisa.agent.virtualize.max.graph.size (1000000) exceeded
    at com.itko.lisa.remote.utils.BoundedStringWriter.checkLength(BoundedStringWriter.java:64)
    at com.itko.lisa.remote.utils.BoundedStringWriter.write(BoundedStringWriter.java:29)
    […]

    I've found on this post "How to handle VSESizeExceededException" that I should modify one of thoses variables : 

     <property comment="Maximum size in bytes of a serialized to XML object graph" key="lisa.agent.transaction.max.graph.size" value="100000"/>

    <property comment="Maximum size in bytes of a serialized to XML object graph" key="lisa.agent.virtualize.max.graph.size" value="100000"/>

     

    Which one should I increase ? Is there any good practices to do so ? And which impacts could it have on the JVM ?

     

    Thanks for your help.

     

    Benoit



  • 2.  Re: How to handle VSESizeExceededException
    Best Answer

    Posted 07-12-2018 09:53 AM

    I would recommend changing both. You can change those values in the DevTest Portal.

    . Login to the Portal and select  Settings-->Agents in the left panel.

    . Select the specific agent-->Settings-->VSE-->Maximum Graph Size and agent-->Settings-->Transactions-->Maximum Graph Size.

    . Save the changes.



  • 3.  Re: How to handle VSESizeExceededException

    Posted 07-18-2018 03:07 AM

    Thanks for the answer. I've used the ATK to upgrade thoses values.

     

    Can you tell me which impacts could it have on the JVM ?

     

    Benoit



  • 4.  Re: How to handle VSESizeExceededException

    Posted 09-20-2018 10:18 AM

    Hi Benoit  ,

     

    After changing values in ATK, did u restart DevTest components ? Did this solution work for you?

     

    Regards,

    Akshay M.



  • 5.  Re: How to handle VSESizeExceededException

    Posted 09-20-2018 10:44 AM

    It worked, without restarting any compoments.

     

    Best regards,

     

    Benoit



  • 6.  Re: How to handle VSESizeExceededException

    Posted 09-21-2018 05:37 AM

    May I know what value did u set? 



  • 7.  Re: How to handle VSESizeExceededException

    Posted 09-24-2018 07:44 AM

    I've tried 10.000.000

    There were still errors, but less.