2

I'm completely new to . I'm currently just trying some basic things on our project and a test project.
On a test project the following works without a problem on the Rascal terminal:

rascal>import lang::java::m3::Core;
ok
rascal>import lang::java::jdt::m3::Core;
ok
rascal>myModel = createM3FromEclipseProject(|project://TestProject|);
... (output)

However, when I try it on our huge project, it still hasn't produced any output after more than 45 minutes of waiting. I was wondering how long this might take for huge projects.

I've checked with the Eclipse search options and we have 404,389 lines of code in our .java files alone, and 1,780 classes. Yes, it's a huge and complex project that's little over 10 years old.

Perhaps I should narrow it down with sub-queries instead of doing createM3FromEclipseProject, but I'm not 100% which yet. Is there a Rascal tutorial perhaps that only focuses on searching through Java projects (apart from the two MeasuringJava recipes?

Kevin Cruijssen
  • 9,153
  • 9
  • 61
  • 135

1 Answers1

3

Check your profiler (VisualVM), most likely you are primarily waiting for the Garbage Collector to free up memory, then consume it, and ask for more memory again.. increasing the max memory for the JVM can greatly help (-Xmx8G in the eclipse.ini).

Davy Landman
  • 15,109
  • 6
  • 49
  • 73