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_NUMB ER, 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 3 2247
"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_NUMB ER, 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
Essayez avec Server.CreateOb ject à la place CreateObject seulement, car il
est possible que ce dernier ne fasse une mauvaise gestion des objets en
mémoire. Server.CreateOb ject 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_NUMB ER, 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
Bonjour,
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)> a
écrit dans le message de news:OX******** ******@TK2MSFTN GP12.phx.gbl... Essayez avec Server.CreateOb ject à la place CreateObject seulement, car il est possible que ce dernier ne fasse une mauvaise gestion des objets en mémoire. Server.CreateOb ject 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_NUMB ER, 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the issue is.
Thanks
Ravi
|
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
|
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
attending interviews. If you own a company best way to judge if the
candidate is worth of it.
http://www.questpond.com/InterviewRatingSheet.zip
|
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 tackle as a
learning project. In Java, I'd subclass the Panel or JPanel class. Is
there someplace where a Java programmer who is learning C# could
quickly find out what the analog for those classes are?
|
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() {
}
public double getArea() {
return 5.0;
}
| |
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. For example:
f(3)
f(3, )
|
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 JDK 6 downloadable from
http://java.sun.com/javase/downloads/index.jsp.
I will be using JDK 5(update 8)
|
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 programming but on Java programming but I will cover all the important aspects of object oriented programming as Java has full support for object-oriented
programming even though it is not a fully object-oriented language (in the sense that you can write...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |