Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Cloud Performance Tuning lab

Rating
-
Sold
-
Pages
3
Uploaded on
03-02-2025
Written in
2024/2025

Cloud Performance Tuning lab

Institution
Course

Content preview

CLOUD PERFORMANCE TUNING

ASSIGNMENT- 9

Q1.) Write a program in java to get the maximum amount of memory (sandbox
limit) for a Java application

INPUT
public class MaxMemory{
public static void main(String a[])
{
Runtime runtime = Runtime.getRuntime();
System.out.println("max memory: " + runtime.maxMemory() / 1024);
}
}


OUTPUT




Q2.) Write a program in java to check the allocated memory by JVM

INPUT
public class MaxMemory2{
public static void main(String a[])
{
Runtime runtime = Runtime.getRuntime();
System.out.println("allocated memory: " + runtime.totalMemory() /
1024);
}
}


OUTPUT

Written for

Institution
Course

Document information

Uploaded on
February 3, 2025
Number of pages
3
Written in
2024/2025
Type
Class notes
Professor(s)
Na
Contains
All classes

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
vershaparashar

Get to know the seller

Seller avatar
vershaparashar upes
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
10
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions