Hi Dimitri
I did what I could to try and reproduce this issue. First I duplicated contacts
in the contacts app until I had about a thousand. Here is my script.
[code]
import info.magnolia.jcr.predicate.NodeTypePredicate
import info.magnolia.importexport.DataTransporter
import info.magnolia.cms.core.Path
repository = "contacts"
nodeType = "mgnl:contact"
session = ctx.getJCRSession(repository)
collection = NodeUtil.collectAllChildren(session.getRootNode(), new
NodeTypePredicate(nodeType))
collection.each { node->
parentNode = node.getParent();
// Generate name and path of the new node
newName = Path.getUniqueLabel(session, parentNode.getPath(),
node.getName());
newPath = Path.getAbsolutePath(parentNode.getPath(), newName);
// Duplicate node
session.getWorkspace().copy(node.getPath(), newPath);
}
println collection.size
[/code]
Then I set up a link field pointing to the Contacts app. Then tried using the
field a few times and never did experience a crash or any significant degrade
in performance. Now I am using Java 1.8.0_51 and Magnolia 5.4.3.
It might be a good idea to investigate why the JVM crashed and also try
upgrading Java. You could also try reproducing it using the Contacts app like I
did.
HTH
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=d60a8a50-0b17-430a-9547-7c81fcb6c8d8
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------