JTE new template engine in spring boot starter site

Last week I saw that there is new template engine in spring boot starter site Then I remembered that I have spring template engine comparison benchmark here and I wonder how is JTE performance compared to thymeleaf or freemarker. below is the latest numbers from java 23 build Engine Name Seconds jsp 6.652 velocity 3.728 freemarker 2.616 thymeleaf 6.932 mustache 3.100 jade 3.503 pebble 3.519 handlebars 13.405 scalate 3.987 httl 3.430 chunk 4.430 htmlFlow 1.670 trimou 2.059 rocker 1.957 ickenham 4.342 rythm 3.411 groovy 751.200 kotlinx 2.422 jte 2.940 JTE(2.9) is still slower then freemarker(2.6), it is still faster then jsp and mustache and thymeleaf. Also here you can see older test results. ...

October 13, 2024 · 1 min · Özkan Pakdil

How to add intellij community edition to right click menu on win 11

How can one add intellij cpmmunity edition to right click menu on win 11? Copy below code to a bat file and run it in CMD as administrator, before running this command just test from win+r shortcode and paste %USERPROFILE%\AppData\Local\Programs\IntelliJ IDEA Community Edition\bin\idea64.exeand see if this runs the intellj @echo off setlocal enabledelayedexpansion :: Set the path to your IntelliJ executable using %USERPROFILE% set "INTELLIJ_PATH=%USERPROFILE%\AppData\Local\Programs\IntelliJ IDEA Community Edition\bin\idea64.exe" :: Check if running with admin privileges net session >nul 2>&1 if %errorLevel% neq 0 ( echo This script requires administrator privileges. echo Please run it as an administrator. pause exit /b 1 ) :: Add IntelliJ to context menu reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\IntelliJ" /ve /d "Open with IntelliJ" /f reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\IntelliJ\command" /ve /d "\"%INTELLIJ_PATH%\" \"%%V\"" /f reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\IntelliJ" /v "Icon" /d "%INTELLIJ_PATH%" /f echo IntelliJ has been added to the context menu. echo Please restart File Explorer or your PC for changes to take effect. pause

October 11, 2024 · 1 min · Özkan Pakdil

How to publish JetBrains Rider plugin for opentelemetry/honeycomb

I had the chance to work with honeycomb.io 2 weeks ago, mainly I was changing the code which sends data too appinsights azre now needed to send data to honeycomb too. It was not too complex but it is hard to catch those log lines and make sure if we called the endpoint correctly and what data we sent. There is wonderful plugin for that for appinsights https://github.com/Socolin/ApplicationInsightsRiderPlugin but there was no plugin whcih can show opentelemetry calls, yes honeycomb.io uses OTEL protocol meaning opentelemetry which is kind of industry standard now for observability. ...

October 6, 2024 · 2 min · Özkan Pakdil

How to collect dmp files in dotnet

I was reading a DMP file to investigate customer issue where they have been having high CPU issues after latest upgrade. I read the dmp with windbg then vs.net analyze and both times I saw CLR GC(garbage collection and BGC) was eating up all the CPU and I must say VS.NET analyze is really nice, it shows who is eating up the CPU very easily, only problem it may crash sometimes, the dmp file size was around 9GB that maybe the reason I do not know. ...

September 12, 2024 · 2 min · Özkan Pakdil

How to build spring boot native binary

In short I am explaining why we should use ./mvnw -Pnative native:compile and what error comes otherwise and why. I was preparing this answer. And I was having problem with the class not found errors while building because I was using this command ./mvnw native:compile ... Error: Please specify class (or <module>/<mainclass>) containing the main entry point method. (see --help) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.448 s [INFO] Finished at: 2024-09-01T21:24:32+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.10.2:compile (default-cli) on project env-variables: Execution of C:\sdkman\candidates\java\21.0.2-graal\bin\native-image.cmd @target\tmp\native-image-2373453772169200185.args returned non-zero result -> [Help 1] [ERROR] Then remembered the profile thing and finally get rid of this error, used below command ...

September 1, 2024 · 1 min · Özkan Pakdil