Risks of running my own java code on a production server The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!UnknownHostException for server through java client codeCan we Uninstall Java on Production Server?How does java permgen relate to code sizeHow do you update your Java EE app in production?Bandwidth fluctuations while running java serverCaveats when upgrading from Java 6 to Java 7 on hundreds of production serversOpenJDK or Oracle Java on production serverHow can I upgrade to Java 1.8 on an Amazon Linux Server?Java running in specific environment?Java web app runs slow only on production server
Match Roman Numerals
Store Dynamic-accessible hidden metadata in a cell
Circular reasoning in L'Hopital's rule
Can each chord in a progression create its own key?
Mortgage adviser recommends a longer term than necessary combined with overpayments
Did the new image of black hole confirm the general theory of relativity?
How did the crowd guess the pentatonic scale in Bobby McFerrin's presentation?
Variable with quotation marks "$()"
What information about me do stores get via my credit card?
Does Parliament need to approve the new Brexit delay to 31 October 2019?
Can a flute soloist sit?
Using dividends to reduce short term capital gains?
Why are PDP-7-style microprogrammed instructions out of vogue?
Simulating Exploding Dice
Why doesn't a hydraulic lever violate conservation of energy?
Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
Is 'stolen' appropriate word?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
How do I design a circuit to convert a 100 mV and 50 Hz sine wave to a square wave?
Presidential Pardon
What's the point in a preamp?
Windows 10: How to Lock (not sleep) laptop on lid close?
What is the padding with red substance inside of steak packaging?
Risks of running my own java code on a production server
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!UnknownHostException for server through java client codeCan we Uninstall Java on Production Server?How does java permgen relate to code sizeHow do you update your Java EE app in production?Bandwidth fluctuations while running java serverCaveats when upgrading from Java 6 to Java 7 on hundreds of production serversOpenJDK or Oracle Java on production serverHow can I upgrade to Java 1.8 on an Amazon Linux Server?Java running in specific environment?Java web app runs slow only on production server
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I work as an operation engineer in a telecom company, i have several servers under my responsibility, and my main task is to perform the "daily health check" for those, part of that is to compare some values with the previous ones, i am considering different options to plot the data, i need your help to evaluate the risks of running my own small java program on those servers considering that i am far from being the best developer out there, for example if i somehow start an endless loop or i don't free the resources that i allocate.
Thanks in advance.
java
add a comment |
I work as an operation engineer in a telecom company, i have several servers under my responsibility, and my main task is to perform the "daily health check" for those, part of that is to compare some values with the previous ones, i am considering different options to plot the data, i need your help to evaluate the risks of running my own small java program on those servers considering that i am far from being the best developer out there, for example if i somehow start an endless loop or i don't free the resources that i allocate.
Thanks in advance.
java
3
Why write your own? There are a bazillion products on the market that can do this.
– joeqwerty
Mar 25 at 20:16
thank you for your response, those are production servers, i can't install what ever i want there, but let's assume that i can get the approval to install or run a product, what are the risks, if the product fails (or my script that will uses the product) is it possible that it will impact the other critical programs on the server or even crash the server, i want to know if things are "isolated" in java. i can eliminated any potential risk by making a code that is executed on the client side but prefer the plots to be generated on the server and sent to me and the managers as pictures instead.
– LAHOUEL Youssouf
Mar 25 at 20:49
3
It is beyond sanity to think that you could not use a well understood off-the-shelf product but would be able to run arbitrary code in production. The opposite is true in any reasonable environment.
– Michael Hampton♦
Mar 25 at 20:57
Agreed. It make no sense that you cannot use a well understood, mature product for this but are allowed to install your own "home grown" application. That is decidedly counter intuitive.
– joeqwerty
Mar 25 at 21:13
i know that it doesn't make much sense, but that is how it works here, people use some shell scripts and that made me assume that it is almost risk free, but when it comes to installing an app it sounds risky to me, i'm careful because the failure will without a doubt cost me my job, so i am simply looking for an answer to this simple question: can a java program written by me or someone else damage the server? i mean i already know that java is executed in a JVM, i want to know if that makes it safe or risk free? thank you all for your time.
– LAHOUEL Youssouf
Mar 26 at 7:59
add a comment |
I work as an operation engineer in a telecom company, i have several servers under my responsibility, and my main task is to perform the "daily health check" for those, part of that is to compare some values with the previous ones, i am considering different options to plot the data, i need your help to evaluate the risks of running my own small java program on those servers considering that i am far from being the best developer out there, for example if i somehow start an endless loop or i don't free the resources that i allocate.
Thanks in advance.
java
I work as an operation engineer in a telecom company, i have several servers under my responsibility, and my main task is to perform the "daily health check" for those, part of that is to compare some values with the previous ones, i am considering different options to plot the data, i need your help to evaluate the risks of running my own small java program on those servers considering that i am far from being the best developer out there, for example if i somehow start an endless loop or i don't free the resources that i allocate.
Thanks in advance.
java
java
asked Mar 25 at 20:06
LAHOUEL YoussoufLAHOUEL Youssouf
31
31
3
Why write your own? There are a bazillion products on the market that can do this.
– joeqwerty
Mar 25 at 20:16
thank you for your response, those are production servers, i can't install what ever i want there, but let's assume that i can get the approval to install or run a product, what are the risks, if the product fails (or my script that will uses the product) is it possible that it will impact the other critical programs on the server or even crash the server, i want to know if things are "isolated" in java. i can eliminated any potential risk by making a code that is executed on the client side but prefer the plots to be generated on the server and sent to me and the managers as pictures instead.
– LAHOUEL Youssouf
Mar 25 at 20:49
3
It is beyond sanity to think that you could not use a well understood off-the-shelf product but would be able to run arbitrary code in production. The opposite is true in any reasonable environment.
– Michael Hampton♦
Mar 25 at 20:57
Agreed. It make no sense that you cannot use a well understood, mature product for this but are allowed to install your own "home grown" application. That is decidedly counter intuitive.
– joeqwerty
Mar 25 at 21:13
i know that it doesn't make much sense, but that is how it works here, people use some shell scripts and that made me assume that it is almost risk free, but when it comes to installing an app it sounds risky to me, i'm careful because the failure will without a doubt cost me my job, so i am simply looking for an answer to this simple question: can a java program written by me or someone else damage the server? i mean i already know that java is executed in a JVM, i want to know if that makes it safe or risk free? thank you all for your time.
– LAHOUEL Youssouf
Mar 26 at 7:59
add a comment |
3
Why write your own? There are a bazillion products on the market that can do this.
– joeqwerty
Mar 25 at 20:16
thank you for your response, those are production servers, i can't install what ever i want there, but let's assume that i can get the approval to install or run a product, what are the risks, if the product fails (or my script that will uses the product) is it possible that it will impact the other critical programs on the server or even crash the server, i want to know if things are "isolated" in java. i can eliminated any potential risk by making a code that is executed on the client side but prefer the plots to be generated on the server and sent to me and the managers as pictures instead.
– LAHOUEL Youssouf
Mar 25 at 20:49
3
It is beyond sanity to think that you could not use a well understood off-the-shelf product but would be able to run arbitrary code in production. The opposite is true in any reasonable environment.
– Michael Hampton♦
Mar 25 at 20:57
Agreed. It make no sense that you cannot use a well understood, mature product for this but are allowed to install your own "home grown" application. That is decidedly counter intuitive.
– joeqwerty
Mar 25 at 21:13
i know that it doesn't make much sense, but that is how it works here, people use some shell scripts and that made me assume that it is almost risk free, but when it comes to installing an app it sounds risky to me, i'm careful because the failure will without a doubt cost me my job, so i am simply looking for an answer to this simple question: can a java program written by me or someone else damage the server? i mean i already know that java is executed in a JVM, i want to know if that makes it safe or risk free? thank you all for your time.
– LAHOUEL Youssouf
Mar 26 at 7:59
3
3
Why write your own? There are a bazillion products on the market that can do this.
– joeqwerty
Mar 25 at 20:16
Why write your own? There are a bazillion products on the market that can do this.
– joeqwerty
Mar 25 at 20:16
thank you for your response, those are production servers, i can't install what ever i want there, but let's assume that i can get the approval to install or run a product, what are the risks, if the product fails (or my script that will uses the product) is it possible that it will impact the other critical programs on the server or even crash the server, i want to know if things are "isolated" in java. i can eliminated any potential risk by making a code that is executed on the client side but prefer the plots to be generated on the server and sent to me and the managers as pictures instead.
– LAHOUEL Youssouf
Mar 25 at 20:49
thank you for your response, those are production servers, i can't install what ever i want there, but let's assume that i can get the approval to install or run a product, what are the risks, if the product fails (or my script that will uses the product) is it possible that it will impact the other critical programs on the server or even crash the server, i want to know if things are "isolated" in java. i can eliminated any potential risk by making a code that is executed on the client side but prefer the plots to be generated on the server and sent to me and the managers as pictures instead.
– LAHOUEL Youssouf
Mar 25 at 20:49
3
3
It is beyond sanity to think that you could not use a well understood off-the-shelf product but would be able to run arbitrary code in production. The opposite is true in any reasonable environment.
– Michael Hampton♦
Mar 25 at 20:57
It is beyond sanity to think that you could not use a well understood off-the-shelf product but would be able to run arbitrary code in production. The opposite is true in any reasonable environment.
– Michael Hampton♦
Mar 25 at 20:57
Agreed. It make no sense that you cannot use a well understood, mature product for this but are allowed to install your own "home grown" application. That is decidedly counter intuitive.
– joeqwerty
Mar 25 at 21:13
Agreed. It make no sense that you cannot use a well understood, mature product for this but are allowed to install your own "home grown" application. That is decidedly counter intuitive.
– joeqwerty
Mar 25 at 21:13
i know that it doesn't make much sense, but that is how it works here, people use some shell scripts and that made me assume that it is almost risk free, but when it comes to installing an app it sounds risky to me, i'm careful because the failure will without a doubt cost me my job, so i am simply looking for an answer to this simple question: can a java program written by me or someone else damage the server? i mean i already know that java is executed in a JVM, i want to know if that makes it safe or risk free? thank you all for your time.
– LAHOUEL Youssouf
Mar 26 at 7:59
i know that it doesn't make much sense, but that is how it works here, people use some shell scripts and that made me assume that it is almost risk free, but when it comes to installing an app it sounds risky to me, i'm careful because the failure will without a doubt cost me my job, so i am simply looking for an answer to this simple question: can a java program written by me or someone else damage the server? i mean i already know that java is executed in a JVM, i want to know if that makes it safe or risk free? thank you all for your time.
– LAHOUEL Youssouf
Mar 26 at 7:59
add a comment |
1 Answer
1
active
oldest
votes
Your Java program is unlikely to damage the server unless it is written to do something that would damage the server.
The JVM allocates a contiguous block of memory on start up, called Heap Space. You use parameters to control the minimum and maximum size of the Heap; I forget what the defaults are but they’re not very big. If you run out of heap, your Java program will crash or run very poorly but everything else should be unaffected. If there isn’t enough memory for the heap to start with, your JVM probably will not start (this is a platform dependent implementation issue). You don’t directly “free resources that you allocate” in Java, but this would be the closest thing to what would happen if you didn’t do that.
The JVM can potentially use 100% of server CPU when executing code. If you put in an endless loop that doesn’t do anything useful that can eat all of the CPU on that machine. This is probably bad for your server, so try not to do that.
Do you plan to do any concurrency? Spin up any separate threads? Call any native libraries with JNI? Execute independent processes? Those are all things that can cause scary crashes that are hard to figure out if you do them wrong. Since you don’t feel confident in your own abilities, I’ll tell you right now not to pursue this plan if any of what you are thinking of involves any of those things.
Other than that, it should be low risk as long as you are certain nobody else will be able to execute this program arbitrarily, e.g. spin up a dozen instances of it in order to crash your server. That’s a really big assumption so spy out should be absolutely sure that it applies here.
New contributor
Thanks a lot for the explanation, that was the answer i was looking for, in my case i decided to use html/js (d3) for now, so almost nothing is executed on the server.
– LAHOUEL Youssouf
Apr 9 at 10:24
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f959914%2frisks-of-running-my-own-java-code-on-a-production-server%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your Java program is unlikely to damage the server unless it is written to do something that would damage the server.
The JVM allocates a contiguous block of memory on start up, called Heap Space. You use parameters to control the minimum and maximum size of the Heap; I forget what the defaults are but they’re not very big. If you run out of heap, your Java program will crash or run very poorly but everything else should be unaffected. If there isn’t enough memory for the heap to start with, your JVM probably will not start (this is a platform dependent implementation issue). You don’t directly “free resources that you allocate” in Java, but this would be the closest thing to what would happen if you didn’t do that.
The JVM can potentially use 100% of server CPU when executing code. If you put in an endless loop that doesn’t do anything useful that can eat all of the CPU on that machine. This is probably bad for your server, so try not to do that.
Do you plan to do any concurrency? Spin up any separate threads? Call any native libraries with JNI? Execute independent processes? Those are all things that can cause scary crashes that are hard to figure out if you do them wrong. Since you don’t feel confident in your own abilities, I’ll tell you right now not to pursue this plan if any of what you are thinking of involves any of those things.
Other than that, it should be low risk as long as you are certain nobody else will be able to execute this program arbitrarily, e.g. spin up a dozen instances of it in order to crash your server. That’s a really big assumption so spy out should be absolutely sure that it applies here.
New contributor
Thanks a lot for the explanation, that was the answer i was looking for, in my case i decided to use html/js (d3) for now, so almost nothing is executed on the server.
– LAHOUEL Youssouf
Apr 9 at 10:24
add a comment |
Your Java program is unlikely to damage the server unless it is written to do something that would damage the server.
The JVM allocates a contiguous block of memory on start up, called Heap Space. You use parameters to control the minimum and maximum size of the Heap; I forget what the defaults are but they’re not very big. If you run out of heap, your Java program will crash or run very poorly but everything else should be unaffected. If there isn’t enough memory for the heap to start with, your JVM probably will not start (this is a platform dependent implementation issue). You don’t directly “free resources that you allocate” in Java, but this would be the closest thing to what would happen if you didn’t do that.
The JVM can potentially use 100% of server CPU when executing code. If you put in an endless loop that doesn’t do anything useful that can eat all of the CPU on that machine. This is probably bad for your server, so try not to do that.
Do you plan to do any concurrency? Spin up any separate threads? Call any native libraries with JNI? Execute independent processes? Those are all things that can cause scary crashes that are hard to figure out if you do them wrong. Since you don’t feel confident in your own abilities, I’ll tell you right now not to pursue this plan if any of what you are thinking of involves any of those things.
Other than that, it should be low risk as long as you are certain nobody else will be able to execute this program arbitrarily, e.g. spin up a dozen instances of it in order to crash your server. That’s a really big assumption so spy out should be absolutely sure that it applies here.
New contributor
Thanks a lot for the explanation, that was the answer i was looking for, in my case i decided to use html/js (d3) for now, so almost nothing is executed on the server.
– LAHOUEL Youssouf
Apr 9 at 10:24
add a comment |
Your Java program is unlikely to damage the server unless it is written to do something that would damage the server.
The JVM allocates a contiguous block of memory on start up, called Heap Space. You use parameters to control the minimum and maximum size of the Heap; I forget what the defaults are but they’re not very big. If you run out of heap, your Java program will crash or run very poorly but everything else should be unaffected. If there isn’t enough memory for the heap to start with, your JVM probably will not start (this is a platform dependent implementation issue). You don’t directly “free resources that you allocate” in Java, but this would be the closest thing to what would happen if you didn’t do that.
The JVM can potentially use 100% of server CPU when executing code. If you put in an endless loop that doesn’t do anything useful that can eat all of the CPU on that machine. This is probably bad for your server, so try not to do that.
Do you plan to do any concurrency? Spin up any separate threads? Call any native libraries with JNI? Execute independent processes? Those are all things that can cause scary crashes that are hard to figure out if you do them wrong. Since you don’t feel confident in your own abilities, I’ll tell you right now not to pursue this plan if any of what you are thinking of involves any of those things.
Other than that, it should be low risk as long as you are certain nobody else will be able to execute this program arbitrarily, e.g. spin up a dozen instances of it in order to crash your server. That’s a really big assumption so spy out should be absolutely sure that it applies here.
New contributor
Your Java program is unlikely to damage the server unless it is written to do something that would damage the server.
The JVM allocates a contiguous block of memory on start up, called Heap Space. You use parameters to control the minimum and maximum size of the Heap; I forget what the defaults are but they’re not very big. If you run out of heap, your Java program will crash or run very poorly but everything else should be unaffected. If there isn’t enough memory for the heap to start with, your JVM probably will not start (this is a platform dependent implementation issue). You don’t directly “free resources that you allocate” in Java, but this would be the closest thing to what would happen if you didn’t do that.
The JVM can potentially use 100% of server CPU when executing code. If you put in an endless loop that doesn’t do anything useful that can eat all of the CPU on that machine. This is probably bad for your server, so try not to do that.
Do you plan to do any concurrency? Spin up any separate threads? Call any native libraries with JNI? Execute independent processes? Those are all things that can cause scary crashes that are hard to figure out if you do them wrong. Since you don’t feel confident in your own abilities, I’ll tell you right now not to pursue this plan if any of what you are thinking of involves any of those things.
Other than that, it should be low risk as long as you are certain nobody else will be able to execute this program arbitrarily, e.g. spin up a dozen instances of it in order to crash your server. That’s a really big assumption so spy out should be absolutely sure that it applies here.
New contributor
New contributor
answered Apr 8 at 12:15
JoeJoe
1262
1262
New contributor
New contributor
Thanks a lot for the explanation, that was the answer i was looking for, in my case i decided to use html/js (d3) for now, so almost nothing is executed on the server.
– LAHOUEL Youssouf
Apr 9 at 10:24
add a comment |
Thanks a lot for the explanation, that was the answer i was looking for, in my case i decided to use html/js (d3) for now, so almost nothing is executed on the server.
– LAHOUEL Youssouf
Apr 9 at 10:24
Thanks a lot for the explanation, that was the answer i was looking for, in my case i decided to use html/js (d3) for now, so almost nothing is executed on the server.
– LAHOUEL Youssouf
Apr 9 at 10:24
Thanks a lot for the explanation, that was the answer i was looking for, in my case i decided to use html/js (d3) for now, so almost nothing is executed on the server.
– LAHOUEL Youssouf
Apr 9 at 10:24
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f959914%2frisks-of-running-my-own-java-code-on-a-production-server%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Why write your own? There are a bazillion products on the market that can do this.
– joeqwerty
Mar 25 at 20:16
thank you for your response, those are production servers, i can't install what ever i want there, but let's assume that i can get the approval to install or run a product, what are the risks, if the product fails (or my script that will uses the product) is it possible that it will impact the other critical programs on the server or even crash the server, i want to know if things are "isolated" in java. i can eliminated any potential risk by making a code that is executed on the client side but prefer the plots to be generated on the server and sent to me and the managers as pictures instead.
– LAHOUEL Youssouf
Mar 25 at 20:49
3
It is beyond sanity to think that you could not use a well understood off-the-shelf product but would be able to run arbitrary code in production. The opposite is true in any reasonable environment.
– Michael Hampton♦
Mar 25 at 20:57
Agreed. It make no sense that you cannot use a well understood, mature product for this but are allowed to install your own "home grown" application. That is decidedly counter intuitive.
– joeqwerty
Mar 25 at 21:13
i know that it doesn't make much sense, but that is how it works here, people use some shell scripts and that made me assume that it is almost risk free, but when it comes to installing an app it sounds risky to me, i'm careful because the failure will without a doubt cost me my job, so i am simply looking for an answer to this simple question: can a java program written by me or someone else damage the server? i mean i already know that java is executed in a JVM, i want to know if that makes it safe or risk free? thank you all for your time.
– LAHOUEL Youssouf
Mar 26 at 7:59