Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for JvmMemoryStatus (0.2 sec)

  1. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/JvmMemoryInfo.java

    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    @ServiceScope(Scope.Global.class)
    public interface JvmMemoryInfo {
        JvmMemoryStatus getJvmSnapshot();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 882 bytes
    - Viewed (0)
  2. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/JvmMemoryStatusSnapshot.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.process.internal.health.memory;
    
    public class JvmMemoryStatusSnapshot implements JvmMemoryStatus {
        private final long maximumMemory;
        private final long committedMemory;
    
        public JvmMemoryStatusSnapshot(long maximumMemory, long commitedMemory) {
            this.maximumMemory = maximumMemory;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/DefaultJvmMemoryInfo.java

         */
        long getCommittedMemory() {
            //querying runtime for each invocation
            return Runtime.getRuntime().totalMemory();
        }
    
        @Override
        public JvmMemoryStatus getJvmSnapshot() {
            return new JvmMemoryStatusSnapshot(getMaxMemory(), getCommittedMemory());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonExpirationTest.groovy

    import org.gradle.internal.logging.LoggingManagerInternal
    import org.gradle.process.JavaForkOptions
    import org.gradle.process.internal.health.memory.DefaultMBeanAttributeProvider
    import org.gradle.process.internal.health.memory.JvmMemoryStatus
    import org.gradle.process.internal.health.memory.MBeanOsMemoryInfo
    import org.gradle.process.internal.health.memory.MaximumHeapHelper
    import org.gradle.process.internal.health.memory.MemoryAmount
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/process-services/src/integTest/groovy/org/gradle/process/internal/health/memory/MemoryStatusUpdateIntegrationTest.groovy

                        MemoryManager manager = services.get(MemoryManager.class)
                        manager.addListener(new JvmMemoryStatusListener() {
                            void onJvmMemoryStatus(JvmMemoryStatus memoryStatus) {
                                logger.lifecycle "JVM MemoryStatus notification: $memoryStatus"
                                projectDir.file("jvmReceived").asFile.createNewFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 29 14:36:01 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/process/internal/MultiRequestWorkerProcessIntegrationTest.groovy

            def worker = builder.build()
            def process = worker.start()
    
            then:
            ConcurrentTestUtil.poll {
                assert process.jvmMemoryStatus.committedMemory > 0
            }
    
            cleanup:
            worker?.stop()
        }
    
        def "propagates failure thrown by method in worker process"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Mar 15 22:51:06 UTC 2020
    - 6.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/DefaultMemoryManager.java

                    if (osMemoryStatusSupported) {
                        OsMemoryStatus os = osMemoryInfo.getOsSnapshot();
                        osBroadcast.onOsMemoryStatus(os);
                    }
                    JvmMemoryStatus jvm = jvmMemoryInfo.getJvmSnapshot();
                    jvmBroadcast.onJvmMemoryStatus(jvm);
                } catch (Throwable t) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.process.internal.health.memory.JvmMemoryStatus> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (JvmMemoryStatus.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top