Created
March 6, 2014 09:05
-
-
Save bjorn-ali-goransson/9385779 to your computer and use it in GitHub Desktop.
JSP that check free memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html><head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
<style> | |
body{background:url('mostar-bosnia.jpg');} | |
.container{margin-top:200px;text-align:center;} | |
</style> | |
</head><body> | |
<div class="container"> | |
<span class="btn btn-success btn-lg"> | |
<i class="fa fa-coffee"></i> | |
Welcome to Java (<%= Runtime.getRuntime().freeMemory() %> bytes free) | |
</span> | |
</div> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment