title: VisualVM and GlassFish
body: <p>Currently, I am trying to weed out bottlenecks in my JSF/PrimeFaces web application. In order to do so, I installed VisualVM and its GlassFish plug-in.</p>
  
  <p>I am unable to explicitly "profile" over JMX, but I can generate a "sampling" output. This output, however, shows almost the entire load in an operation called <code>$Proxy245.invoke()</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/Ei2fB.png" alt="VisualVM sampling output"></p>
  
  <p>My own operations (ch.diction.*) and the SQL interaction logic (com.mysql.jdbc.*), which I suspected as bottlenecks in the first place, do not seem to contribute an awful lot to this lack of performance.</p>
  
  <p>The page being displayed is a PrimeFaces datatable with a few hundred paginated records. The number of records does affect the performance significantly, if not exclusively.</p>
  
  <p>So my question is: How can I find out what lies behind <code>$Proxy245.invoke()</code> in order to identify the real bottleneck in this scenario?</p>
  
  <p>Thank you in advance for your advice and best regards</p>
  
  <p>Pascal</p>