aspose file tools*
The moose likes Performance and the fly likes What is the typical number of java statements run by a servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "What is the typical number of java statements run by a servlet?" Watch "What is the typical number of java statements run by a servlet?" New topic
Author

What is the typical number of java statements run by a servlet?

Sarah Mettler
Greenhorn

Joined: Jun 07, 2012
Posts: 1
I am writing some custom code to work with the product LongJump. It is a CRM. They have a Java api that let's you do some custom coding and you add/update/delete records thru their api that they wrote. It uses MVC architecture. Anyway, they have some governors built in. The maximum number of Java code statements that can be run during an execution interval is 10,000. The total size of all strings allocated in the Java heap space during an execution interval is 30,000.

Our code is not that big, but because of the amount of data we have a huge number of loops. For one save action from the front end I really end up creating around 300-400 new records in the database.

We are going over this limit and the system is throwing an error. I am trying to get an idea if the governors are reasonable or not. Any opinions?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30752
    
156

10K sounds very low. Just to display this page is probably over 1000 lines of code. Plus loops and the like.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the typical number of java statements run by a servlet?