473,385 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ASP and Java Classes

Hello,

First of all, I don't write or even speak good english, so sorry for all the
mistakes of this post.

I tried to use Java classes from ASP. I used javareg to register my classes
and called that classes from ASP with CreateObject. I did a lot of
CreateObject in the whole site. That worked well.
But my web site crashed when the load was increasing, contrary to the old
version which used COM component.

I made tests with three simple pages :
- an ASP script with the com component which was used before,
- an ASP script with my java classes
- a JSP, with my java classes
The first one and the third one ran well, and the second one crashed (And
runs a lot slower than the others scripts)

It seems to prove that the use of the Java classes from ASP are the origin
of my problem : when the site gets loaded ( I mean with many clients on it,
not sure that "gets loaded" will be understood), the 'Requests Executing''s
counter increase to the MAX_THREAD_NUMBER, the 'Requests Queud' then
increases and the site didn't answer anymore.

I put logs on my pages, and it shows that the requests stop on a
CreateObject from my java class.

Did someone know something about a limitation of the number of objects in
the "COM Java bridge", I mean in the 'pseudo JVM' used in my mtx process (I
use WIN NT 4 and IIS 4), or how to configure that 'pseudo JVM' ?

Thanks for your help
Yours Sincerely,

Airness
Jul 19 '05 #1
3 2227
"Airness" <ai***********@freesbee.fr> wrote in message
news:3f***********************@news.free.fr...
Hello,

First of all, I don't write or even speak good english, so sorry for all the mistakes of this post. Your english is pretty well (not to mention mine :) )?
I tried to use Java classes from ASP. I used javareg to register my classes and called that classes from ASP with CreateObject. I did a lot of
CreateObject in the whole site. That worked well.
But my web site crashed when the load was increasing, contrary to the old
version which used COM component.

I made tests with three simple pages :
- an ASP script with the com component which was used before,
- an ASP script with my java classes
- a JSP, with my java classes
The first one and the third one ran well, and the second one crashed (And
runs a lot slower than the others scripts)

It seems to prove that the use of the Java classes from ASP are the origin
of my problem : when the site gets loaded ( I mean with many clients on it, not sure that "gets loaded" will be understood), the 'Requests Executing''s counter increase to the MAX_THREAD_NUMBER, the 'Requests Queud' then
increases and the site didn't answer anymore.

I put logs on my pages, and it shows that the requests stop on a
CreateObject from my java class.

Did someone know something about a limitation of the number of objects in
the "COM Java bridge", I mean in the 'pseudo JVM' used in my mtx process (I use WIN NT 4 and IIS 4), or how to configure that 'pseudo JVM' ?
Not really, But I only know that Java is not supported by Microsoft (for
years) so if you want a supported system, go for non-MS-Java systems or use
Microsofts J# (java compatible).
You also might find a solution by not using MTX on NT4, directly use
CreateObject on the java class.
Thanks for your help
Yours Sincerely,

Airness


Jul 19 '05 #2
Essayez avec Server.CreateObject à la place CreateObject seulement, car il
est possible que ce dernier ne fasse une mauvaise gestion des objets en
mémoire. Server.CreateObject est sans doute plus capable de détecter
correctement la libération propice de chaque objet initialisé dans ASP.

Il y a un paquet de raisons possibles à l'arrêt du service IIS, mais la plus
courante est sans doute une fuite de mémoire. Il serait bon de vérifier que
toutes les allocations d'objets dans votre code Java sont bel et bien
libérées et que vous ne stockiez aucun des objets Java dans des variables de
session ou d'application.

Le degré d'isolement des processus dans IIS peut également avoir de
l'importance. De plus, comme Java n'est plus vraiment supporté par MS, je
doute que votre problème ne soit jamais réglé; cependant, cela ne serait pas
une mauvaise idée d'essayer avec Java de .NET, si vous avez accès à un
server avec .NET d'installé.

S. L.

"Airness" <ai***********@freesbee.fr> wrote in message
news:3f***********************@news.free.fr...
Hello,

First of all, I don't write or even speak good english, so sorry for all the mistakes of this post.

I tried to use Java classes from ASP. I used javareg to register my classes and called that classes from ASP with CreateObject. I did a lot of
CreateObject in the whole site. That worked well.
But my web site crashed when the load was increasing, contrary to the old
version which used COM component.

I made tests with three simple pages :
- an ASP script with the com component which was used before,
- an ASP script with my java classes
- a JSP, with my java classes
The first one and the third one ran well, and the second one crashed (And
runs a lot slower than the others scripts)

It seems to prove that the use of the Java classes from ASP are the origin
of my problem : when the site gets loaded ( I mean with many clients on it, not sure that "gets loaded" will be understood), the 'Requests Executing''s counter increase to the MAX_THREAD_NUMBER, the 'Requests Queud' then
increases and the site didn't answer anymore.

I put logs on my pages, and it shows that the requests stop on a
CreateObject from my java class.

Did someone know something about a limitation of the number of objects in
the "COM Java bridge", I mean in the 'pseudo JVM' used in my mtx process (I use WIN NT 4 and IIS 4), or how to configure that 'pseudo JVM' ?

Thanks for your help
Yours Sincerely,

Airness

Jul 19 '05 #3
Bonjour,

"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)> a
écrit dans le message de news:OX**************@TK2MSFTNGP12.phx.gbl...
Essayez avec Server.CreateObject à la place CreateObject seulement, car il
est possible que ce dernier ne fasse une mauvaise gestion des objets en
mémoire. Server.CreateObject est sans doute plus capable de détecter
correctement la libération propice de chaque objet initialisé dans ASP.

J'ai essayé, le résultat n'est pas meilleur
Il y a un paquet de raisons possibles à l'arrêt du service IIS, mais la plus courante est sans doute une fuite de mémoire. Il serait bon de vérifier que toutes les allocations d'objets dans votre code Java sont bel et bien
libérées et que vous ne stockiez aucun des objets Java dans des variables de session ou d'application.
Pour l'objet Java, je confirme, il est utilisé à grande échelle dans ma
boite qui gère quelques très gros sites français. De même pour le stockage
en session ou en application : j'ai fait le code.. Je me demandais au
contraire si mettre l'objet en session ne pourrait pas améliorer les perfs
mais ce n'est pas le cas
Pas de fuite mémoire de toute façon, j'ai surveillé les différents compteurs
du perfmon .. La seule chose notable est la consommation CPU, mais qui est
globalement la même quand le test utilise de l'ASP avec un composant COM, ou
quand j'ai fait le test avec une JSP...

Le degré d'isolement des processus dans IIS peut également avoir de
l'importance. De plus, comme Java n'est plus vraiment supporté par MS, je
doute que votre problème ne soit jamais réglé; cependant, cela ne serait pas une mauvaise idée d'essayer avec Java de .NET, si vous avez accès à un
server avec .NET d'installé.

S. L.

Pas de serveur en .NET actuellement .. Nosu tentons l'utilisation d'un autre
pont entre COM et Java, avec une autre JVM ..
Merci pour la réponse en tout cas
Airness
"Airness" <ai***********@freesbee.fr> wrote in message
news:3f***********************@news.free.fr...
Hello,

First of all, I don't write or even speak good english, so sorry for all

the
mistakes of this post.

I tried to use Java classes from ASP. I used javareg to register my

classes
and called that classes from ASP with CreateObject. I did a lot of
CreateObject in the whole site. That worked well.
But my web site crashed when the load was increasing, contrary to the old version which used COM component.

I made tests with three simple pages :
- an ASP script with the com component which was used before,
- an ASP script with my java classes
- a JSP, with my java classes
The first one and the third one ran well, and the second one crashed (And runs a lot slower than the others scripts)

It seems to prove that the use of the Java classes from ASP are the origin of my problem : when the site gets loaded ( I mean with many clients on

it,
not sure that "gets loaded" will be understood), the 'Requests

Executing''s
counter increase to the MAX_THREAD_NUMBER, the 'Requests Queud' then
increases and the site didn't answer anymore.

I put logs on my pages, and it shows that the requests stop on a
CreateObject from my java class.

Did someone know something about a limitation of the number of objects in the "COM Java bridge", I mean in the 'pseudo JVM' used in my mtx process

(I
use WIN NT 4 and IIS 4), or how to configure that 'pseudo JVM' ?

Thanks for your help
Yours Sincerely,

Airness


Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
4
by: angel | last post by:
A java runtime environment includes jvm and java class (for example classes.zip in sun jre). Of course jython need jvm,but does it need java class. Thanx
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
9
by: TomC | last post by:
Is there any resource where someone who is familiar with Java might find which .NET classes are similar to classes they are familiar with in Java? For example, I have a project that I'd like to...
0
by: r035198x | last post by:
Overriding therefore allows you to use the same method name to refer to differently implemented methods. Here is an example using the famous shapes example. class Shape { public Shape()...
15
by: Xah Lee | last post by:
On Java's Interface Xah Lee, 20050223 In Java the language, there's this a keyword “interface”. In a functional language, a function can be specified by its name and parameter specs....
5
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is...
0
by: r035198x | last post by:
Inheritance We have already covered one important concept of object-oriented programming, namely encapsulation, in the previous article. These articles are not articles on object oriented...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.