An application class loader leak occurs when applications are restarted but their class loaders are not cleaned up.
当应用程序重启但它们的类加载器没有清理时,将发生应用程序类加载器泄露。
You must make the client classes of the EJB remote interfaces available to the Web application class loader. This can be done in two ways.
您必须使EJB远程接口的客户端类对应用程序类加载器可用。
While deploying, class loading conflicts are resolved by using a different application class loader for each enterprise application module.
在部署阶段,类加载冲突通过对不同的企业应用程序模块使用不同的应用程序类加载器得以解决。
Application class loader Leaks lists all of the application class loaders, indicating whether any of them are stopped and therefore leaking.
Application Class LoaderLeaks列示所有应用程序类加载器,表明它们是否被停止,因此导致泄漏。
The application class loader is responsible for loading EJB modules packaged in EJB JAR files and utility classes packaged in dependent JAR files.
应用程序类加载器负责加载eJBJAR文件中的EJB模块以及封装在相关的JAR文件中的实用程序类。
To ensure that the Web application class loader picks up the portlet TLD files, you must also declare the portlet taglib directly, as shown in Listing 10.
为了确保Web应用程序类装入器获得portletTLD文件,您还必须直接声明 portlettaglib,如清单10 所示
The system class loader (also known as the application class loader) is the class loader responsible for loading code from the path specified by the CLASSPATH environment variable.
系统(system)类装入器(也称作应用程序类装入器)负责从CLASSPATH环境变量指定的路径装入代码。
Web modules within the J2EE application are loaded using a WAR class loader that is a child of the application class loader for the enterprise application containing the Web module.
J2EE应用程序中的Web模块通过war类加载器来加载,这个类加载器是企业应用程序中的应用程序类加载器的一个子类。
The application ClassLoader Leaks query will find all stopped application class loaders and interrogate suspects that cause the class loader to be ineligible for garbage collection.
Application ClassLoaderLeaks查询将找到所有停止的应用程序类加载器,询问可能导致类加载器不适合垃圾收集的可疑对象。
It also shows class loader information — again, this is simple because the application is so simple.
它还展示了类加载器信息——再说一遍,这很简单,因为应用程序太简单了。
Here, we use reflection because we have loaded the application using a class loader that is not the system class loader.
这里,我们使用反射的原因是因为我们已经使用非系统类加载器加载了应用程序。
The disadvantage of this approach is that the modified class loader would have to be distributed along with the application for it to run on older JVMs.
该方法的缺点是:修改的类装入器必须与其应用程序一起分布,以在较旧的JVM上运行。
Each EAR application should have a unique string name for the class loader. Here, we use the application name in the class loader name to avoid repetition.
这里我们使用应用程序名作为类加载器的名称,以避免重复。
So whilst in a traditional application, classes from a logging library, a client and server JAR may be loaded by the same class loader, in an OSGi module system, each would be loaded by their own.
因此,尽管在传统应用中,来自logging类库、client和serverJAR中的类都是由同一个类加载器加载的,但在OSGi模块系统中,他们都是由自己的类加载器加载的。
If the class loader tries to find a nonexistent resource, all the JAR files within the application or applet will have to be downloaded.
如果类装载器试图寻找一个不存在的资源,那么在应用程序或者applet中的所有JAR文件都会下载。
For example, the selected class loader in Figure 5 now shows that it is the class loader for the PlantsByWebSphere Web application.
例如,图5中选中的类加载器显示它是PlantsByWebSphereweb应用程序的类加载器。
In the Tomcat hierarchy of class loaders shown in Figure 1, for instance, classes loaded by the Common class loader will never be able to directly access (by name) classes loaded by a Web application.
例如,在图1显示的Tomcat类装入器层次结构中,由common类装入器装入的类决不能(根据名称)直接访问由Web应用程序装入的类。
To create an application context, it USES a context loader class named ContextLoader, which loads the application context.
要创建应用程序上下文,将使用名为ContextLoader的上下文装载器类装载应用程序上下文。
The jboss-app.xml file specifies the class loader for this application.
jboss-app.xml文档为该应用指定了类加载器,每个EAR应用的类加载器应该有一个唯一的名称。
This, combined with the different class loader implementations in each application server, can potentially create problems when migrating.
这一点,再加上每个应用服务器中的不同类加载器实现,会为迁移带来潜在的问题。
These methods let the framework set the class loader to be used for each application while running code from that application.
这些方法允许该框架设置类装入器,使得在运行每个应用程序中的代码时可以将类装入器用于该应用程序。
The application hangs because each thread owns a lock on one of the class loaders and wants the lock on the other class loader, as illustrated in the timeline diagram in Figure 2.
应用程序之所以挂起,是因为每个线程都拥有一个类装入器上的锁,并想得到另一个类装入器上的锁,如图2的时间线图所示。
When the web application is redeployed, a new class loader is created, and new versions of the classes are loaded in.
当Web应用重新被部署时,又创建了一个新的类加载器,新版类就由其装载。
This approach means that application restarts are typically much faster than "cold starts" since the base class loader is already available and populated.
这种方法意味着应用重启时比“冷启动”更快,因为基类加载器已经存在并可用。
This approach means that application restarts are typically much faster than "cold starts" since the base class loader is already available and populated.
这种方法意味着应用重启时比“冷启动”更快,因为基类加载器已经存在并可用。
应用推荐