greptilian logo

IRC log for #friendlyjava, 2015-05-05

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:26 stuntmania joined ##friendlyjava
01:38 vorane joined ##friendlyjava
01:48 stuntmania joined ##friendlyjava
01:51 vorane joined ##friendlyjava
02:36 Kyzz pdurbin: Or anyone else around to help me with this Java thing i've been working on
02:36 Kyzz I'm stuck with the OOP stuff
02:36 Kyzz more or less
03:19 Richard_2340985 joined ##friendlyjava
07:56 HEGX64 Kyzz: What do you need help with
08:02 pulsar "this java thing" ;)
08:03 pulsar Kyzz: dont ask to ask, post a link to a gist/pastebin/whatever snippet service
08:03 pulsar and try to boil down your problem to one question / commented code.
08:04 pulsar most ppl here are working and wont have much time during office hours to ask questions so you can ask yours.
10:24 pdurbin Kyzz: trouble with your swing app?
14:39 aditsu what do you guys use for java profiling?
14:56 pdurbin netbeans
14:57 aditsu so... visualvm?
15:00 aditsu oh, I see there's a different netbeans-profiler package
15:00 aditsu ah, but it's a dependency of visualvm anyway
15:02 aditsu bah, maybe it's time to give netbeans another try
15:14 pdurbin yeah, I'm pretty sure it's just visualvm
15:17 aditsu I had an older visualvm installed and it doesn't seem to work very well... trying netbeans 8 now
15:17 aditsu it's fairly pleasant so far :) let me see if I can profile something
15:20 aditsu I'm impressed :)
15:23 aditsu it doesn't seem to take snapshots though
15:34 aditsu I can only see live results (hot spots), no call tree and no snapshots
15:44 pdurbin aditsu: you can take snapshots
15:45 aditsu I tried, it didn't do anything
15:45 aditsu trying to run the project from netbeans now.. but it doesn't seem to have an option to redirect input
15:45 pdurbin http://i1-win.softpedia-static.com/screenshots/NetBeans-Profiler_1.png
15:46 aditsu that's what I want ^
15:47 pdurbin aditsu: someone in #netbeans might know
15:52 aditsu the only "someone" seems to be you :p
15:53 pdurbin aditsu: the netbeans community is very open to people filing issues for anything. you should feel free: https://netbeans.org/bugzilla/
15:54 aditsu anything? hmm, I have an issue... I don't have a million dollars :p
15:55 aditsu anyway, I don't feel comfortable filing a bug report after using netbeans for just 30 min
15:58 pdurbin aditsu: just do it
16:06 aditsu ok.. if I get in trouble, I'll blame you :p
16:16 pdurbin :)
16:16 pdurbin aditsu: done yet? what's the bug number?
16:17 aditsu just submitted, https://netbeans.org/bugzilla/show_bug.cgi?id=252250
16:17 pdurbin aditsu++
16:43 aditsu also added bug 252251
16:44 aditsu this is basic stuff, I think eclipse had it 12 years ago...
16:44 aditsu actually.. let me double-check
16:46 aditsu hm, maybe not, or at least it's confusing :p
16:49 aditsu ok I was wrong, eclipse also doesn't have that option yet (but it will be in eclipse 4.5)
17:15 * pdurbin looks at https://netbeans.org/bugzilla/show_bug.cgi?id=252251
17:15 pdurbin ah, about standard input
17:47 aditsu so anyway, in the meantime, I still can't profile :p
17:50 aditsu unless I write some code to read from a specific file, I guess
17:53 pdurbin aditsu: can you use visualvm by itself?
17:54 aditsu the one I have doesn't work very well..
17:54 pdurbin huh. dunno
17:54 aditsu does netbeans install its own visualvm?
17:54 pdurbin aditsu: I assume `jconsole` doesn't cut it. you want more detail
17:56 aditsu anyway, doing System.setIn now, this might work
17:57 pdurbin aditsu: are you troubleshooting a performance problem?
17:57 aditsu yeah
17:58 aditsu hmm, "take snapshot" still doesn't work!
18:03 aditsu ooh, I think I found something
18:03 aditsu I said "take snapshot" does nothing... that's not 100% true
18:04 aditsu very hard to notice, but a tiny "1" bubble appears in the status bar on the right side
18:04 aditsu when I double-click it, it shows me an unexpected exception
18:05 aditsu StackOverflowError
18:08 pdurbin aditsu: I found someone who might be able to help: http://irclog.greptilian.com/sourcefu/2015-05-05
18:14 aditsu I updated the bug report
18:17 aditsu pdurbin: I wonder how much he can help if he can't even see I'm having a problem :p
18:31 aditsu aha!
18:31 aditsu I modified the -J-Xss option in netbeans.conf, and now I can get a snapshot :)
18:33 aditsu oh jeez, the call tree is way too deep
18:38 pdurbin I've had to drill down on some pretty deep call trees. I blame EJB.
18:39 aditsu I blame recursion
18:41 pdurbin heh
18:46 aditsu I think I managed to freeze netbeans
18:56 aditsu hm, I changed some profiling settings and now I can't take a snapshot again... with no error in the status bar
19:27 aditsu pdurbin: do you know how to get back from back traces of a method to the call tree?
19:27 aditsu ah nevermind, there are some tabs on the bottom of that view
19:28 Kyzz joined ##friendlyjava
19:32 aditsu for some reason, it doesn't want to profile again after I stop profiling, unless I restart netbeans
19:40 aditsu some actions are painfully slow..
19:48 pdurbin aditsu: are you profiling all classes? some of them?
19:48 aditsu all
19:49 pdurbin yeah, probably slow then
20:17 aditsu anyway, I made a performance improvement, but it's not quite enough.. and it's hard to find the next one
20:18 aditsu heh, netbeans has totally different shortcuts, it throws me off pretty badly :p
20:19 aditsu ooh, it has an eclipse profile
20:59 pdurbin netbeans isn't so bad
20:59 pdurbin it has grown on me
21:08 aditsu I have a disturbing feeling that the next big optimization will be switching from ArrayList to arrays
21:10 pdurbin ah
22:27 pdurbin1 joined ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode