with sets around 40,000 questions, every time a
question was answered, heap usage went up by about
1MB.
I found some filestreams that weren't being closed,
closing those helped a great deal. There still seems to
be about a 100K/question increase with every answer.
I took all the pluglets out, and the behavior was the
same.
I'm almost sure there's a collection somewhere that's
assigned every time a question is answered, like
Collection<Question or QuestionData> bar;
public foo(Collection<Question or QuestionData> c){
...
//if(bar!=null) bar.clear();
bar = c;
...
}
Uncommenting the clear would fix the problem. Now we
just have to find it
Logged In: YES
user_id=505143
I confirmed that no new QuestionData or Question objects are
being created when the user answers a question. I used a
heap profiler and noticed that there were a very large number
of org.apache.velocity.runtime.Token objects... will look into
this...