Re: RAM usage

2024-04-10 Thread Raul Cosio
That's the question I've asked myself for years... In the first versions of
Java that was a concern: Why did Netbeans use 200MB of RAM when Visual
Basic used just 10MB or less? PC's were more limited in RAM, maybe that's
why Java was not popular in desktop apps, but succeeded with web
servers, where you could afford a server with more RAM and disk drive. We
had a joke at the office: "Java was slow and used huge amounts of RAM,
however, now PC's have faster processors and lots of RAM!" :)
These days it is not uncommon to see Netbeans using 1.5GB of RAM, yes it
uses caches, precompiling, error detection, popup documentation and many
more features but it still does not make sense.
I don't know if somebody has an answer to this question but I guess it is
related to performance and GC: If you have a considerable amount of RAM
reserved, it's much faster to allocate new objects. Java is very efficient
at Object allocation, in the same way, garbage collection is so fast that
you don't even notice when it is running, so I would say: Java uses lots of
RAM because performance is more important.
Finally, I remember many years ago when a coworker went to a JBoss training
course, and he asked the instructor: Why do Java and JBoss have to use such
amounts of RAM? The instructor made a small pause and then he said
(rephrasing at today's economy): How much is a developer salary? 20-30
dollars an hour? And, how much is a 16 GB stick of RAM? 16 dollars? Well,
just buy more RAM for your developers and let them focus on solving
business problems...


On Wed, Apr 10, 2024 at 3:32 AM Tom  wrote:

> Why does Java and Netbeans use extreme amounts of RAM for simple apps?
> Can there be done something about it?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: With JDK 17, Oracle moves back to a free license

2021-09-14 Thread Raul Cosio
Thanks Will, interesting reading but I still don't get it. Comments from
the group are welcome.
I've read the license many times but it doesn't look clear to me, the
license says that It grants to you, a limited license to internally use the
unmodified programs for the purposes of "developing, testing, prototyping
and demonstrating your application, and running the program *for you own
personal use or internal business operations*". That last part does look to
me the same as the last license because it means that I can use the JDK for
my "private personal use", and in my company I can use it "for
internal business operations". Running the JDK for a public tomcat web
server is considered internal business operations?. However, as you
indicated in your email, Donald Smith in his blog, said that "it is free
for commercial and production use" as long as it is not redistributed for a
fee. Would that mean that I can sell my product with a JDK included as long
as I include a paragraph saying that "The JDK is included freely as a
courtesy"?

Regards,
Raul Cosio

On Tue, Sep 14, 2021 at 12:34 PM Will Hartung  wrote:

> JDK 17 is out.
>
> And there was this interesting development.
>
> https://blogs.oracle.com/java/post/free-java-license
>
> Top two bullet points:
>
> +   Oracle is making the industry leading Oracle JDK available for free,
> including all quarterly security updates.  This includes commercial and
> production use.
>
> +   The new license is the "Oracle No-Fee Terms and Conditions" (NFTC)
> license.  This license for the Oracle JDK permits free use for all users,
> even commercial and production use.  Redistribution is permitted as long as
> it is not for a fee.
>
> So, I thought this was interesting news.
>
> Regards,
>
> Will Hartung
>
>