Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

Rafael Forte

Greenhorn
+ Follow
since Dec 07, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rafael Forte

But in this case we have a specification contradiction: The DBAccess interface says to throw a SecurityException if the lockCoockie is invalid, but this sitiuation clearly doest't happen because any attemp to lock the updating record will be stoped in Object.wait(). In short, two threads will never execute the updateRecord method for the same recordNumber.

It seems to be more an assummption in the design choices.

Regards,
Rafael Forte.
You can disable the ejb deployer verification using the following mbean

<mbean code="org.jboss.ejb.EJBDeployer"
name="jboss.ejb:service=EJBDeployer">
<attribute name="VerifyDeployments">false</attribute>
<attribute name="ValidateDTDs">false</attribute>
<attribute name="MetricsEnabled">false</attribute>
<attribute name="VerifierVerbose">false</attribute>
</mbean>

The mbean defined above is located in conf/jboss-service.xml (jb3.X) setting in jboss-service.xml or in deploy/ejb-deployer.xml (jb4).

If you want to verify j2ee compatibility, use sun j2eeverifier tool packed with sun j2ee ri.

Regards,
Rafael Forte.
17 years ago
Why don't you block requests using servlet-filter?
Regards,
Rafael Forte
17 years ago
Graham,

These are general tips for simple tuning (if not using Entity Beans):

- pre-compile your JSPs
- disable your hot deployment scanner
- increase your EJB pool.
- increase your min/max request processor threads (tomcat)
- if u r in a multi-cpu machine tune gc algorithms
- remove any unused mbean.
- set log level to error and disable
- use a fastest jvm (such as jrockit)

In addition you can find useful information in www.amitysolutions.com.au/downloads/JBoss_code.pdf

Regards,
Rafael Forte
17 years ago
Why don't you pre-compile your JSPs?
Regards,

Rafael Forte
17 years ago
Hi Diego,
Take a look at sticky sessions using apache, jk2 and jboss-tomcat.
Regards.

Rafael Forte
SCJP SCJD SCWCD SCBCD SCEA
17 years ago
Hi,

I'm experiencing some threading problems in my production environment. After some time of execution my production jboss generates a Thread consuming 99,9% of the CPU. The other three processors are 100% idle while this thread is running.

My environment:

Red Hat Enterprise 3.0
Jboss 3.0.8
Postgresql 7.3
j2sdk1.4.2_05 (sun jvm)

Any ideas?

Thanks in advance.
17 years ago
Hi,

I'm experiencing some threading problems in my production environment. After some time of execution my production jboss generates a Thread consuming 99,9% of the CPU. The other three processors are 100% idle while this thread is running.

My environment:

Red Hat Enterprise 3.0
Jboss 3.0.8
Postgresql 7.3
j2sdk1.4.2_05 (sun jvm)

Any ideas?

Thanks in advance.