Created attachment 902478 [details] Script creates and imports 1000 PortService resources to the server's inventory. Description of problem: When I try to automatically create a large amount of resources using script communicating through either CLI or REST API, the executiuon fails with the exception (see below). The problems occurs unpredictably after a few tens or a few hundreds resources are successfully created and sometimes the server even manages to import all of the resources (my objective was to create 1000 resources). Version-Release number of selected component (if applicable): RHQ 4.11 How reproducible: most of the times Steps to Reproduce: 1. Try to create ~1000 resources using CLI or REST. 2. Observe the server's log 3. Actual results: Not all of the resources are created and the script execution ends with the exception. Expected results: All of the required resources are successfully created. Additional info: Exception captured while using CLI: http://pastebin.test.redhat.com/213459 Exception captured while using REST: http://pastebin.test.redhat.com/213460