[Performance Tuning] - Re: Performance Issue with large chunk of data retreival.
by mark.spritzler
OK, I am posting this as just me, not who I work for. :)
First, tell me who the person is that will actually ready that huge report? Must be one of the fastest speed readers in the world.
OK, So first, reports like these should be run over-night, not as ad-hoc.
2. There are products out there that generate reports like these, not necessarily in Java (did I just say that). Anyway they are products designed specifically for these types of reports, and therefore are "the right tool for the job" and not trying to pound a square peg into a round hole with a straw.
3. You might want to handle the data in batches, only bring down enough records at a time to do one page, then release that data to free up memory, and get the next page, and build up the report like that to stay away from out of memory issues. Now this will slow it down, but then again at this point you don't even get the report done.
Personally, I'd look for a product that does huge reports, that that is what they were built for, rather than forcing a bad solution.
Thanks
Mark
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136692#4136692
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136692
18 years, 1 month
[Clustering/JBoss] - Re: StackOverflowError when starting JBoss Cluster
by bstansberry@jboss.com
Sure, binding to an address is valid. If you don't specify an address, for security reasons all services bind to localhost, which is pretty useless for a production system.
BTW, setting -Djboss.bind.address with the same value is redundant if you use -b.
Have you tried this solution discussed on the JIRA you linked?
"Srinivasu Nidadavolu" wrote :
| I also got this issue. I got this error when I am binding my server to a particular IP address.
|
| I found a place to cause the issue.
|
| all\deploy\jbossesb.sar\esb.juddi.xml, java.naming.provider.url is pointing to localhost in the following way.
|
| jnp://localhost:1099
|
| If we are binding our server to some IPaddress while starting the server, then we have to change this localhost to corresponding IP
| address. I modified in the following way.
|
| key="java.naming.provider.url">jnp://${jboss.bind.address}:1099
|
| and started the server with IPaddress. This issue is not appearing.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136686#4136686
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136686
18 years, 1 month
[JBoss jBPM] - JbpmException: couldn't delete timers for process instance
by wootenator
I have a very straightforward jBPM prototype where I am using hibernate,and tomcat abd SQL Server database.
I get this error sometimes on the second invocation of the same ActionHandler within a graph. I'm just prototyping now. My action handler just makes an update to a text field in the database depending on the object that is passed into the aciton handler.
I'm reading about timers and right now I am not using a timer in the prototype. I'd almost like to disable them or do something within the action handler to make sure they are not causing this exception do I can continue with the developmetn of my prototype.
The exception comes after the third processInstance.signal() that would take the process to transition to the thrird node in the graph (counting the start node).
The graph is below:
public static ProcessDefinition getTaskProcessDefinition() {
JbpmConfiguration jbpmConfiguration = null;
ProcessDefinition processDefinition = null;
try{
processDefinition =
ProcessDefinition.parseXmlString("<process-definition name='processManualTask'>"
+ " <start-state name='start'>"
+ " "
+ " </start-state>"
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " "
+ " <end-state name='End' />"
+ "</process-definition>");
} catch(Exception e) {e.printStackTrace();
}
try{
HttpSession sess = FrameworkServices.instance().getSession();
JbpmContext jbpmContext = (JbpmContext) sess.getAttribute("jbpmctx");
if (jbpmContext == null) {
jbpmConfiguration = JbpmConfiguration.getInstance();
jbpmContext = jbpmConfiguration.createJbpmContext();
sess.setAttribute("jbpmctx", jbpmContext);
}
System.out.println("saving process instance");
ProcessDefinition definition = processDefinition.createNewProcessDefinition();
ProcessInstance processInstance = definition.createProcessInstance();
jbpmContext.save(processInstance);
Session session = (Session) sess.getAttribute("hibsess");
session.flush();
System.out.println("process instance saved!!!!");
}catch(Exception e) {e.printStackTrace();
}
return processDefinition;
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136684#4136684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136684
18 years, 1 month