Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k points)

We have created an application with:

  • 2 nodes + 1 Notary
  • 2 web application (one for each node)

Corda Version is 3.2

The CordApp has:

  • the first flow, receiving in input a list of objects, used to create a list of State. This list will be the output of the transaction
  • the list of object (approx 3000 objects) is split into lists with the size of 450 (because of ActiveMQ Artemis error for lists with bigger size [java.lang.IllegalArgumentException: Record is too large to store])

  • after the first flow, we launch another flow with a similar logic. In this case we have a list of StateAndRef (results of a query with RPCops) received as an input within the flow and used as output for the transaction.

  • either in this case, we split the list (approx 3000 objects) into sub-lists of 450 elements.

Randomly we received Java Heap Space error and SslHandshakeCompletionEvent(javax.net.ssl.SSLException: handshake timed out). This seems a serious memory leak.

We can do the entire workflow only using params -Xmx10240m (10GB) on our local machine. Monitoring the resource, it seems that the heap grows exponentially especially during the transactions.

What could be the reason for this crash?

Is not possible to use Corda with lists with this size?

1 Answer

0 votes
by (29.5k points)
edited by

Hi, maybe solution is to add the override of toString and hashCode not only in the Entity class for the States, but also in the class containing these Entities (the one extends MappedSchema). Now the nodes should not exceed the memory

Give yourself time to explore this field properly. Enroll in IBM Blockchain Certificate now.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 22, 2019 in Blockchain by Abhishek_31 (12.7k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...