Package org.eclipse.jetty.server

Examples of org.eclipse.jetty.server.LowResourceMonitor


        // Low resource max idle time
        Integer lowResourceMaxIdleTime = config.lowResourceMaxIdleTime().get();
        if( lowResourceMaxIdleTime != null )
        {
            LowResourceMonitor lowResourceMonitor = new LowResourceMonitor( server );
            lowResourceMonitor.setLowResourcesIdleTimeout( lowResourceMaxIdleTime );
            server.addBean( lowResourceMonitor );
        }

        // Statistics
        if( config.statistics().get() )
View Full Code Here


        requestLogHandler.setRequestLog(requestLog);
        handlers.addHandler(requestLogHandler);


        // === jetty-lowresources.xml ===
        LowResourceMonitor lowResourcesMonitor=new LowResourceMonitor(server);
        lowResourcesMonitor.setPeriod(1000);
        lowResourcesMonitor.setLowResourcesIdleTimeout(200);
        lowResourcesMonitor.setMonitorThreads(true);
        lowResourcesMonitor.setMaxConnections(0);
        lowResourcesMonitor.setMaxMemory(0);
        lowResourcesMonitor.setMaxLowResourcesTime(5000);
        server.addBean(lowResourcesMonitor);


        // === test-realm.xml ===
        HashLoginService login = new HashLoginService();
View Full Code Here

        jettyServer.setStopAtShutdown(true);

        MBeanContainer container = new MBeanContainer(mbeanServer);
        jettyServer.addBean(container);

        LowResourceMonitor lowResourcesMonitor = new LowResourceMonitor(jettyServer);
        lowResourcesMonitor.setPeriod(lowResourcesPeriod);
        lowResourcesMonitor.setLowResourcesIdleTimeout(lowResourcesIdleTime);
        lowResourcesMonitor.setMonitorThreads(lowResourcesMonitorThreads);
        lowResourcesMonitor.setMaxConnections(lowResourcesMaxConnections);
        lowResourcesMonitor.setMaxMemory(lowResourcesMaxMemory);
        lowResourcesMonitor.setMaxLowResourcesTime(lowResourcesMaxTime);
        jettyServer.addBean(lowResourcesMonitor);

        // US24803 - Needed for preventing Hashtable key collision DoS CVE-2012-2739
        jettyServer.setAttribute("org.eclipse.jetty.server.Request.maxFormContentSize", maxFormContentSize);
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.server.LowResourceMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.