I wondered because the ratelimiter access is the only part where the search server directly deals with sockets.
The normal requests are handled by the framework.
ruaok
yeah, it was a good consideration
is there a way from a java program to invoke the GC?
chirlu`
System.GC() apparently.
Mineo
the openjdk management console also has a button for that, if you're using that
chirlu`
Or System.gc(), rather.
ruaok
well, does anyone think that invoking it every 60 seconds is a bad idea?
chirlu`
Perhaps? :)
ruaok
Mineo: using sun's jdk atm
Mineo
ah
chirlu`
I’d like to know if running GC in a stuck state removes the CLOSE_WAIT sockets.
(Via destructors, or what they are called in Java.)
ruaok
ijabz2: can you please do me a favor?
ijabz2
chirlu thats a good point because I forgot how that code works and lookong at it Im not closing the Datagram socket
ruaok
can you create a new URL endpoint that runs the GC?
/run-gc-now-you-piece-of-shit
:)
then we can hit that URL whenever we want the GC to run
then we can see clearly what happens.
chirlu`
ijabz2: Yes, I saw that, but if it connects to a different IP address than what we see, it can’t be that.
ijabz2
ok, I;ll do that
ruaok
thanks
chirlu`
What we see in the netstat output, I mean.
ruaok
CPU usage is climing steadily.
roobarb is fine (restarted recently)
anjali2906 joined the channel
anjali2906 has left the channel
ijabz2
Gc may release memory used by lucene for the memory mapping of indexes but not sure if will as they are not on the heap
either way even if it does will just slow searches a little rather breaking anyhting so woth a try
ruaok nods
ruaok
it sure seems like the GC isn't doing its job
this may not help if the GC gets stuck.
but if the GC doesn't fire, it might
though running the GC on a regular basis may it getting stuck in the first place
s0014 joined the channel
nikki
Gentlecat: hm, the metabrainz sign up thing asks for an email address, couldn't it actually request that info from the mb account when doing oauth?
Gentlecat
yeah, I can add that
ruaok
I'd say auto-fill the form, but allow users to change it.
nikki
(I imagine quite a few people wanting to sign up won't actually be active editors, so they'll have to create an mb account, then sign up "again" (from their point of view))
ijabz2
ruaok ok ive done it, invoked using paramter gc=true
nikki
yeah, I was thinking that
ruaok
on any request or a specifc endpoint, ijabz2?
MBJenkins
Paul Taylor: Close datagram socket after contacting rate limiter
only from local machine, like we do frpo reloading indexes etc, is that ok
ruaok
perfect
compiling now
s0014
\nick siddharth
chirlu`
s0014: Forward slash. :)
s0014
Yeah, by mistake. Sorry to spam the list.
MBJenkins
Paul Taylor: Added gc option to force garbage collection
ruaok
heh. ijabz2 my build succeeded. how should I proceed?
ijabz2
What do yo mean, same as usual I guess
ruaok
your build failed.
ijabz2
oh, I see
erm, I cant see any errors details on Jenkins ?
ruaok I thought there was a way to force Jenkins but cant see it, instead done a tiny bit of refactoring and done a new checkin
ruaok
doing a new pull
s0014
Hey, I am Siddharth Gupta, a final year BTech student. In GSOC'14, I did a Data Visualization project for CiviCRM. I was going through the Idea page, documentation as we as How to contribute. After reading some of the code, I am starting on setting up the server. I would like to know is there anything you are expecting us to do before we start talking about the project.
invoking gc seems to have no effect on memory usage.
which is what I would roughly expect.
chirlu`
But we don’t have any CLOSE_WAIT sockets now, do we?
ruaok
correct, we have none
I may need to wait a few hours for that to occur.
because a watched server never crashes
kepstin-laptop joined the channel
ijabz2
ruaok, classic bad timing Ive just had some feedback on the other bug (TreeMap Null) causing me to commit another change which will get us the neccessary debeugging if/when it happens again
Wil need another build and deploy, but Ill leave it you to decide if yo want to do it now or some other time
Right, we didnt use to log these we just returned the error to user
Does the line before the satck trace actually show the query ?
Leo_Verto
hmm, looks like an empty request to me
ruaok
05-Mar-2015 16:04:38.311 WARNING [http-nio-8080-exec-16] org.musicbrainz.search.servlet.SearchServerServlet.doGet 9044705516.7897105009 AND artist:sri sai telicom maupakar/prakhar yamraaj:Cannot parse '9044705516.7897105009 AND artist:sri sai telicom maupakar/prakhar yamraaj': Lexical error at line 1, column 74. Encountered: <EOF> after : "/prakhar yamraaj"
Paul Taylor: Log query whatever error occurs instead of just if get a parseexception in case it is the query causing the error (which I think it is in this case of SEARCH-411)
Siddharth__ joined the channel
UmkaDK joined the channel
ijabz2
Leo_Verto yes it doesnt like the slash does it
UmkaDK_ joined the channel
ruaok
just a bad client then?
ijabz2
is that a http restriction not a lucene one
ruaok
no clue
chirlu`
I think /.../ is a regex to Lucene.
ijabz2
ah yeah I was looking at lucene 3, thanks chirlu
ruaok
maybe we don't want to log the queryparter errors.
ruaok can you get the preious line that shows the query like you did before please
ruaok
ops sorry
JesseW joined the channel
05-Mar-2015 16:50:40.726 WARNING [http-nio-8080-exec-41] org.musicbrainz.search.servlet.SearchServerServlet.doGet artist:pandora /reyli barba recording:Solo el y yo/Alguien llena mi lugar:null
<s0014> Hey, I am Siddharth Gupta, a final year BTech student. In GSOC'14, I did a Data Visualization project for CiviCRM. I was going through the Idea page, documentation as we as How to contribute. After reading some of the code, I am starting on setting up the server. I would like to know is there anything you are expecting us to do before we start talking about the project.
derwin
hi s0014 :)
s0014
Hi derwin, I have been looking at the issue tracker, and would now to understand what all I should do before discussing the ideas I have for the project.